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...


How is object methods defined in ruby?



How is object methods defined in ruby?..

Answer / Sangeeta Yadav

"Object methods in Ruby are defined using the def keyword. For example, to create a method named 'my_method', you would write: def my_method; ... end"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What is request.xhr?

1 Answers  


How is an iterator handled in ruby?

1 Answers  


What are some built-in ruby class exceptions.

1 Answers  


How to access Ruby array elements? How many methods are used to access Ruby elements?

1 Answers  


Does hash use “ #==” or “#eql?” To compare hash keys?

1 Answers  


Tell us how would you implement hash in ruby internally?

1 Answers  


What must you do first before you can invoke an unboundmethod object?

1 Answers  


what is the difference between a gem and a plugin in Ruby?

1 Answers  


Tell me how do you remove nil values in array using ruby?

1 Answers  


What is rvm?

1 Answers  


what the difference is between false and nil in Ruby?

1 Answers  


What is the difference between a class and a module?

1 Answers  


Categories