Class: Buildr::Options::EnvArray
- Defined in:
- lib/buildr/core/environment.rb
Overview
We use this to present environment variable as arrays.
Instance Method Summary collapse
-
#initialize(name) ⇒ EnvArray
constructor
:nodoc:.
Methods inherited from Array
Constructor Details
#initialize(name) ⇒ EnvArray
:nodoc:
25 26 27 28 |
# File 'lib/buildr/core/environment.rb', line 25 def initialize(name) @name = name.upcase replace((ENV[@name] || ENV[@name.downcase] || '').split(/\s*,\s*/).reject(&:empty?)) end |