Class: Nenv::AutoEnvironment

Inherits:
Environment show all
Defined in:
lib/nenv/autoenvironment.rb

Instance Method Summary collapse

Methods inherited from Environment

#create_method, create_method, #initialize

Constructor Details

This class inherits a constructor from Nenv::Environment

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args) ⇒ Object



4
5
6
7
# File 'lib/nenv/autoenvironment.rb', line 4

def method_missing(meth, *args)
  create_method(meth) unless respond_to?(meth)
  send(meth, *args)
end