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



73
74
75
76
77
78
79
80
81
# File 'lib/dpl/helper/env.rb', line 73

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