I know in Ruby that I can use respond_to? to check if an object has a certain method.
respond_to?
But, given the class, how can I check if the instance has a certai
klass.instance_methods.include :method_name or "method_name", depending on the Ruby version I think.
klass.instance_methods.include :method_name
"method_name"