Do u guys know if it is possible to learn what class the method is defined in?
For example,
to_a is probably defined in Enumerable and in Numeric or elsewhere. Is there a function, like with class objects:
=> aaa=[1,2,3,4,5]
=> aaa.class
=> Array
Is there a method like "defined_in?" to learn which class a method is defined in?
=> to_a.defined_in?