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 the use of load and require in ruby?

1 Answers  


Difference between render and redirect?

1 Answers  


Explain the difference between a single quote and double quote?

1 Answers  


Explain Ruby module?

1 Answers  


What is the use of interpolation in ruby?

1 Answers  


Explain about garbage collection feature of ruby?

1 Answers  


Do you know when self.up and self.down method is used?

1 Answers  


Explain ruby strings.

1 Answers  


What are the only two values that are falsy?

1 Answers  


Explain about the defined operator in ruby?

1 Answers  


Please explain what is mvc and why do we use it?

1 Answers  


What is mvc? And how it works?

1 Answers  


Categories