Do you know how ruby looks up a method to invoke?
Answer / Chandan Kumar Singh Bedi
In Ruby, method lookup (or method resolution) is the process of finding a method definition at runtime. It starts from the object on which the method is called and follows the inheritance hierarchy up to Object (the root class). For example: `class A; def foo; end; end; obj = A.new; obj.foo # calls A#foo because obj is an instance of A.
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me what does ruby name refers to?
In how many ways you can compare Ruby string?
what is the difference extend and include?
What is sysread method in Ruby?
In how many ways items can be added in an array in Ruby?
Explain about the command line options?
What are the ruby variables?
Interpolation is a very important process in Ruby, comment.
Explain the types of variables available in ruby class?
Tell us the types of variables available in ruby class?
How ruby looks up a method to invoke?
What are ruby variables.