title: Given a class, see if instance has method (Ruby)
body: <p>I know in Ruby that I can use <code>respond_to?</code> to check if an object has a certain method.</p>
  
  <p>But, given the class, how can I check if the instance has a certain method?</p>
  
  <p>i.e, something like</p>
  
  <pre><code>Foo.new.respond_to?(:bar)
  </code></pre>
  
  <p>But I feel like there's gotta be a better way than instantiating a new instance.</p>