class Coppy::Environment

Public Instance Methods

method_missing(mid, *args) click to toggle source
Calls superclass method
# File lib/coppy/environment.rb, line 9
def method_missing(mid, *args)
  return super if mid.to_s.end_with?('=')
  return @table[mid] if @table.key?(mid)
  return _parent.send(mid, *args) if _parent
  super
end
subenv(hash = {}) click to toggle source
# File lib/coppy/environment.rb, line 5
def subenv(hash = {})
  self.class.new(_parent: self, **hash)
end