Class: Class
Instance Method Summary (collapse)
-
- (Module) chainable(&blk)
Allows the definition of methods on a class that will be available via super.
Instance Method Details
- (Module) chainable(&blk)
Allows the definition of methods on a class that will be available via super.
26 27 28 29 30 |
# File 'merb-core/lib/merb-core/core_ext/class.rb', line 26 def chainable(&blk) mod = Module.new(&blk) include mod mod end |