How ruby looks up a method to invoke?
Answer / Jolly
Ruby uses dynamic method lookup where the method is resolved at runtime. It first checks for the method in the object's class, then in its parent classes (until Object), and if the method is not found, it raises NoMethodError.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are Ruby iterators?
Is ruby whitespace-dependent?
what is the role of sub-directory app/controllers and app/helpers?
What function converts all html special symbols to html entities in ruby?
How is class methods defined in ruby?
Is ruby supports single inheritance/ multiple inheritance or both?
What is the difference between ruby 1.9 and ruby 2.0?
As you know ruby provides four types of variables. List them and provide a brief explanation for each?
Tell me how you define instance variable, global variable and class variable in ruby?
Explain while loop in ruby.
Can you call a private method outside a ruby class using its object?
In Ruby, it explains about the defined operator?