Did you mean I should check with, Object.respond_to?(“myMethod”). But
It still it didnt’ work. Is that the Object you mention is not what I
mean here?
Can you please explain it little bit more?
Did you mean I should check with, Object.respond_to?(“myMethod”). But
It still it didnt’ work. Is that the Object you mention is not what I
mean here?
Can you please explain it little bit more?
by default, respond_to doesn’t check for private methods, but you can
force it : Object.respond_to?(:myMethod, true)