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 class methods defined in ruby?



How is class methods defined in ruby?..

Answer / Surabhi Saxena

In Ruby, class methods are defined using the 'def' keyword followed by the name of the method prefixed with self or the class name. They are called by specifying the class name and dot notation for the method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Difference between render and redirect?

1 Answers  


Define ruby methods.

1 Answers  


Explain next statement in ruby.

1 Answers  


What are the ruby variables?

1 Answers  


What are advantages of using ruby?

1 Answers  


Explain the garbage collection feature of ruby?

1 Answers  


Explain about methods?

1 Answers  


Please explain the role of thread pooling in relation to the thread lifecycle in ruby?

1 Answers  


How is an iterator handled in ruby?

1 Answers  


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

1 Answers  


What is sysread method in Ruby?

1 Answers  


What is mvc? And how it works?

1 Answers  


Categories