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

In Ruby code, often it is observed that coder uses a short hand form of using an expression like array.map(&:method_name) instead of array.map { |element| element.method_name }. How this trick actually works?

1 Answers  


In how many ways a block is written in Ruby?

1 Answers  


Explain module mixins in Ruby?

1 Answers  


What are the object-oriented programming features supported by ruby?

1 Answers  


How is an iterator handled in ruby?

1 Answers  


what is the syntax for Ruby collect Iterator?

1 Answers  


Explain about Float, Dig and Max?

1 Answers  


Explain ruby data types.

1 Answers  


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

1 Answers  


What happens when a value is too big for fixnum?

1 Answers  


What is ruby methods?

1 Answers  


What are the looping structures available in ruby?

1 Answers  


Categories