Class: DSeL::DSL::Nodes::Proxy::Environment
- Defined in:
- lib/dsel/dsl/nodes/proxy/environment.rb
Direct Known Subclasses
Constant Summary
Constants included from Base::Environment
Base::Environment::DSEL_NODE_ACCESSOR, Base::Environment::DSEL_NODE_IVAR
Instance Method Summary collapse
Methods included from Mixins::Environment::IvarExplorer
Methods included from Base::Environment
#Parent, #Root, #_dsel_self, #_dsel_shared_variables, #_dsel_variables, #instance_variables
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/dsel/dsl/nodes/proxy/environment.rb', line 24 def method_missing( name, *args, &block ) if _dsel_node && _dsel_self.respond_to?( name ) return _dsel_self.send( name, *args, &block ) end super( name, *args, &block ) end |
Instance Method Details
#respond_to?(*args) ⇒ Boolean
32 33 34 |
# File 'lib/dsel/dsl/nodes/proxy/environment.rb', line 32 def respond_to?( *args ) super( *args ) || (_dsel_node && _dsel_self.respond_to?( *args )) end |