Answer Posted / 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 |
Post New Answer View All Answers