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

What are the case statement in ruby?

1 Answers  


Explain some differences between ruby and python.

1 Answers  


What does ruby name refers to?

1 Answers  


Tell us what is the difference between dynamic and static scaffolding?

1 Answers  


How is an iterator handled in ruby?

1 Answers  


What is ruby methods?

1 Answers  


Describe the environment variables present in Ruby?

1 Answers  


Explain the difference between nil and false in ruby?

1 Answers  


How to use sql db or mysql db. Without defining it in the database.yml

1 Answers  


Please explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?

1 Answers  


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

1 Answers  


What is retry statement in ruby?

1 Answers  


Categories