Class: Cl::Config::Env
- Inherits:
-
Struct
- Object
- Struct
- Cl::Config::Env
- Includes:
- Merge
- Defined in:
- lib/cl/config/env.rb
Constant Summary collapse
- TRUE =
/^(true|yes|on)$/
- FALSE =
/^(false|no|off)$/
Constants included from Merge
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods included from Merge
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/cl/config/env.rb', line 5 def name @name end |
Instance Method Details
#load ⇒ Object
11 12 13 14 |
# File 'lib/cl/config/env.rb', line 11 def load vars = opts.map { |cmd, opts| vars(cmd, opts) } merge(*vars.flatten.compact) end |