Method: Tap::Env#initialize
- Defined in:
- lib/tap/env.rb
#initialize(options = {}) ⇒ Env
Returns a new instance of Env.
74 75 76 77 78 79 |
# File 'lib/tap/env.rb', line 74 def initialize(={}) @paths = [:paths] || [] @paths.collect! {|path| path.kind_of?(Path) ? path : Path.new(*path) } @constants = [:constants] || [] @constants.collect! {|constant| constant.kind_of?(Constant) ? constant : Constant.new(constant) } end |