Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Do you know how ruby looks up a method to invoke?



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

Post New Answer

More Ruby Interview Questions

Explain Ruby object?

1 Answers  


Tell us the types of variables available in ruby class?

1 Answers  


Can you list out the few features of ruby?

1 Answers  


Do you know what is the defined operator?

1 Answers  


What are ruby variables.

1 Answers  


How does a symbol differ from a string?

1 Answers  


What are the only two values that are falsy?

1 Answers  


Name some operators used in ruby.

1 Answers  


Tell us how would you implement hash in ruby internally?

1 Answers  


what is the difference between a single quote and double quote?

1 Answers  


What are the looping structures available in ruby?

1 Answers  


What are some built-in ruby class exceptions.

1 Answers  


Categories