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 |
Explain Ruby object?
Tell us the types of variables available in ruby class?
Can you list out the few features of ruby?
Do you know what is the defined operator?
What are ruby variables.
How does a symbol differ from a string?
What are the only two values that are falsy?
Name some operators used in ruby.
Tell us how would you implement hash in ruby internally?
what is the difference between a single quote and double quote?
What are the looping structures available in ruby?
What are some built-in ruby class exceptions.