Posted By: Konstantin Haase
Date: 2009-03-23 15:54
Summary: Chainable on RubyForge
Project: chainable
I have pushed all versions of chainable to RubyForge, so you can install them by "gem install chainable". For more information, see http://github.com/rkh/chainable.
Chainable is an alternative to alias_method_chain, that uses inheritance, rather than aliasing. It does the following when "chaining" a method:
* copy the original method to a new model
* include the model
* overwrite the method
Thus you can use super and keep your method list clean, too! It even supports a (rather dangerous) auto chaining mode, so you do not have to explicitly chain a method, but chain a method whenever it would be overwritten instead. |
|