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
On my case working with ruby 2.5.3 the following sentences have worked perfectly :
value = "hello world" value.methods.include? :upcase
It will return a boolean value true or false.