Method: Module#append_features
- Defined in:
- lib/source/ruby.rb
#append_features(mod) ⇒ Object
call-seq:
append_features(mod) -> mod
When another module includes this module, this module calls append_features with the module that included this one as the mod parameter. If this module has not already been added to mod or one of its ancestors, this module adds its constants, methods, and module variables to mod. See also Module#include.
FIX: Incomplete
828 829 830 831 832 833 |
# File 'lib/source/ruby.rb', line 828 def append_features(mod) `Red.donateMethodsToSingleton(this,mod)` `Red.donateMethodsToClass(this.prototype,mod.prototype)` `Red.donateConstantsToClass(this,mod)` return `mod` end |