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

Tell me what does ruby name refers to?

1 Answers  


In how many ways you can compare Ruby string?

1 Answers  


what is the difference extend and include?

1 Answers  


What is sysread method in Ruby?

1 Answers  


In how many ways items can be added in an array in Ruby?

1 Answers  


Explain about the command line options?

1 Answers  


What are the ruby variables?

1 Answers  


Interpolation is a very important process in Ruby, comment.

1 Answers  


Explain the types of variables available in ruby class?

1 Answers  


Tell us the types of variables available in ruby class?

1 Answers  


How ruby looks up a method to invoke?

1 Answers  


What are ruby variables.

1 Answers  


Categories