Class: Module::RubyTransientNameSpace
- Inherits:
-
RubyNameSpace
- Object
- RubyNameSpace
- Module::RubyTransientNameSpace
- Defined in:
- lib/maglev/reflection/core_ext/module.rb
Instance Method Summary collapse
Instance Method Details
#[](other) ⇒ Object
27 28 29 30 31 |
# File 'lib/maglev/reflection/core_ext/module.rb', line 27 def [](other) super || (persistent_copy ? persistent_copy[other] : nil) rescue Exception nil end |
#keys ⇒ Object
19 20 21 |
# File 'lib/maglev/reflection/core_ext/module.rb', line 19 def keys super + (persistent_copy ? persistent_copy.keys : []) end |
#values ⇒ Object
23 24 25 |
# File 'lib/maglev/reflection/core_ext/module.rb', line 23 def values super.to_a + (persistent_copy ? persistent_copy.values.to_a : []) end |