1. Technology

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 ...
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
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
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
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
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
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
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.
http://ruby.about.com/od/faqs/qt/Nameerror-Uninitialized-Constant-Object-Something.htm
1  |  2  |  3      Next

©2014 About.com. All rights reserved.