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


What are the different uses of ruby modules?



What are the different uses of ruby modules?..

Answer / Deepak Kumar Bharti

Ruby modules can be used for several purposes: as namespaces (to avoid naming conflicts), to create mixins (to share code between classes), to define constants, and to create singular functionalities that can be included in other classes using `include` or `extend`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Mention what is the difference between a gem and a plugin in ruby?

1 Answers  


Difference between nil and false in ruby?

1 Answers  


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

1 Answers  


what is the difference between put and putc statement?

1 Answers  


Explain the use of global variable $ in Ruby?

1 Answers  


How to open a file in Ruby?

1 Answers  


Difference between render and redirect?

1 Answers  


Explain the use of ensure statement in Ruby?

1 Answers  


Tell us the types of variables available in ruby class?

1 Answers  


Do you know about dig, float and max?

1 Answers  


Can you list out the few features of ruby?

1 Answers  


what is a class library in Ruby?

1 Answers  


Categories