Class: DSeL::DSL::Nodes::Proxy::Environment

Inherits:
Object
  • Object
show all
Includes:
Mixins::Environment::IvarExplorer, Base::Environment
Defined in:
lib/dsel/dsl/nodes/proxy/environment.rb

Direct Known Subclasses

API::Environment

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

#_dsel_node_for_ivar

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

Returns:

  • (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