Class: Populus::DSL::DSLContext

Inherits:
Object
  • Object
show all
Defined in:
lib/populus/dsl.rb

Instance Method Summary collapse

Constructor Details

#initialize(wrap_obj) ⇒ DSLContext

Returns a new instance of DSLContext.



26
27
28
# File 'lib/populus/dsl.rb', line 26

def initialize(wrap_obj)
  @wrap_obj = wrap_obj
end

Instance Method Details

#cond(&do_foobar) ⇒ Object



30
31
32
# File 'lib/populus/dsl.rb', line 30

def cond(&do_foobar)
  @wrap_obj.condition = do_foobar
end

#runs(&do_foobar) ⇒ Object



34
35
36
# File 'lib/populus/dsl.rb', line 34

def runs(&do_foobar)
  @wrap_obj.runner = do_foobar
end