Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/glimmer/ext/module.rb
Instance Method Summary collapse
Instance Method Details
#append_features(mod) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/glimmer/ext/module.rb', line 4 def append_features(mod) if self == Glimmer && mod == Object Glimmer::Config.logger.debug { 'Appending Glimmer to Singleton Class of main object (not appending to Object everywhere to avoid method pollution)' } TOPLEVEL_BINDING.receiver.singleton_class.include(self) else append_features_without_glimmer(mod) end end |
#append_features_without_glimmer ⇒ Object
3 |
# File 'lib/glimmer/ext/module.rb', line 3 alias append_features_without_glimmer append_features |