Module: Dpl::Env::ClassMethods

Defined in:
lib/dpl/helper/env.rb

Overview

should this sit in Cl?

Instance Method Summary collapse

Instance Method Details

#env(*strs) ⇒ Object



77
78
79
80
81
82
83
84
85
# File 'lib/dpl/helper/env.rb', line 77

def env(*strs)
  if strs.any?
    @env = Env.new(ENV, strs)
  elsif env = @env || superclass.instance_variable_get(:@env)
    env.env(self)
  else
    {}
  end
end