• Modules have many uses in Ruby but for now we’re only concerned with how they contribute to the inheritance hierarchy. Although Ruby doesn’t directly support multiple inheritance, modules can be mixed into a class with the include method which has a similar effect.
- 2. Classes, Objects, and Modules
- from Effective Ruby: 48 Specific Ways to Write Better Ruby
- Publisher: Addison-Wesley Professional
- Released: September 2014
Share this highlighthttp://www.safaribooksonline.com/a/effective-ruby-48/8549903/