Method: Piculet::DSL#initialize
- Defined in:
- lib/piculet/dsl.rb
#initialize(path, &block) ⇒ DSL
Returns a new instance of DSL.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/piculet/dsl.rb', line 19 def initialize(path, &block) @path = path @result = OpenStruct.new(:ec2s => {}) @context = Hashie::Mash.new( :path => path, :templates => {} ) instance_eval(&block) end |