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


Explain about methods?



Explain about methods?..

Answer / Nitesh Kumar Singh

Methods in Ruby are functions that perform specific tasks. They can be defined within classes, modules, or the main program using the 'def' and 'end' keywords (e.g., def my_method; end). Methods can take arguments, return values, and manipulate object state. Some methods are predefined in Ruby's core library.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Tell me what is the role of sub-directory app/controllers and app/helpers?

1 Answers  


What is the difference between #== and #eql??

1 Answers  


what is the purpose of the rakefile available in the demo directory in ruby?

1 Answers  


Are numeric objects mutable in ruby?

1 Answers  


Tell me what is the difference between ruby 1.9 and ruby 2.0?

1 Answers  


Explain about garbage collection feature of ruby?

1 Answers  


Do you know what is the defined operator?

1 Answers  


How do you remove nil values in array using ruby?

1 Answers  


Explain the types of variables available in ruby class?

1 Answers  


What method might you use to remove duplicate values from an array?

1 Answers  


How to read a file in Ruby?

1 Answers  


Explain the difference in scope for these two variables: @@name and @name?

1 Answers  


Categories