Module: Rednode::Namespace
- Included in:
- Bindings::Buffer, Bindings::Cares, Bindings::Evals, Bindings::Fs, Process
- Defined in:
- lib/rednode/namespace.rb
Instance Method Summary collapse
Instance Method Details
#[](name) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/rednode/namespace.rb', line 3 def [](name) begin self.class.const_defined?(name) ? self.class.const_get(name) : yield rescue NameError => e yield end end |