Articles related to mixin modules
Mixin Modules - Ruby - About.com
Mixins are one of Ruby's defining features, but often one of the most difficult to understand for those new to Ruby. They're not difficult to understand, but they're ...
Modules: Containment and Composition - Ruby - About.com
Back to our Person mixin module. What you can do with this module is include it in a class. All methods inside the module now become instance methods of the ...
Using the Enumerable Module - Ruby - About.com
By using the Enumerable module, you can make any of your classes act like Ruby standard collections. All you need to do is implement the 'each' method.
Dynamic Method Calls - Ruby - About.com
Mixin Module Methods - Related to inherited methods, methods from mixin modules are searched. While it doesn't seem related at first (composition vs.
Object Specific Behavior - Ruby - About.com
All Ruby method call lookups follow the ancestor chain. However, there are object-specific mixin modules and invisible classes called Singleton Classes that ...
Everything about Object Oriented Programming - Ruby - About.com
It gets a bit confusing, because with modules and mixin modules, Ruby has a ... the right method, or how mix-in modules work, all of that will be covered later.
A Quick Peek at Ruby: 'Include' vs. 'Require' - About.com
Oct 23, 2008 ... For example, if your class defines the method "each", you can include the mixin module Enumerable and it can act as a collection. This can be ...
NameError: uninitialized constant Object::Something
Solution: You've most likely referred to a class or module that doesn't exist. ... Behavior · Modules, Structures, and Classes · Constants in Ruby · Mixin Modules ...
Code Reuse: Inheritance - Ruby - About.com
There is a related feature called a "mixin," but it's primarily used for composition and is not discussed here. .... Ruby provides support for this with mixin modules.
Refinements: Monkeypatching Made Safe - Ruby - About.com
Refinements are a way to implement monkeypatches in a sort of module that can ... Or, you can extend specific objects with this mixin module, limiting the scope.