1. Tech

Articles related to mixin modules

Mixin Modules - Ruby - About.com
Mixins provide a much more Ruby-like solution to this problem. Mixins are a group of methods not yet attached to any class. They exist in a module, and are not ...
http://ruby.about.com/od/beginningruby/a/mixin.htm
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 ...
http://ruby.about.com/od/oo/ss/Modules-Containment-And-Composition.htm
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.
http://ruby.about.com/od/advancedruby/ss/Using-The-Enumerable-Module.htm
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.
http://ruby.about.com/od/advancedruby/a/Refinements-Monkeypatching-Made-Safe.htm
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  ...
http://ruby.about.com/od/oo/ss/Object-Specific-Behavior.htm
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.
http://ruby.about.com/od/oo/ss/Dynamic-Method-Calls.htm
Everything about Object Oriented Programming - Ruby - About.com
A module is something many programmers have a difficult time grasping at first. ... It gets a bit confusing, because with modules and mixin modules, Ruby has a ...
http://ruby.about.com/od/oo/ss/Everything-About-Object-Oriented-Programming.htm
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 ...
http://ruby.about.com/b/2008/10/23/a-quick-peek-at-ruby-include-vs-require.htm
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.
http://ruby.about.com/od/oo/ss/Code-Reuse-Inheritance.htm
What's new in Ruby 2.1.0: Under the Hood - About.com
While not particularly slow since a good portion of the methods being called are defined on higher level classes or mixin modules and (generally) the higher the ...
http://ruby.about.com/od/Whats-New-in-Ruby-210/fl/Whats-new-in-Ruby-210-Under-the-Hood.htm
1  |  2  |  3      Next

©2014 About.com. All rights reserved.