Class: Module::RubyTransientNameSpace

Inherits:
RubyNameSpace show all
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

#keysObject



19
20
21
# File 'lib/maglev/reflection/core_ext/module.rb', line 19

def keys
  super + (persistent_copy ? persistent_copy.keys : [])
end

#valuesObject



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