Class: Populus::DSL::DSLContext
- Inherits:
-
Object
- Object
- Populus::DSL::DSLContext
- Defined in:
- lib/populus/dsl.rb
Instance Method Summary collapse
- #cond(&do_foobar) ⇒ Object
-
#initialize(wrap_obj) ⇒ DSLContext
constructor
A new instance of DSLContext.
- #runs(&do_foobar) ⇒ Object
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(&) @wrap_obj.condition = end |
#runs(&do_foobar) ⇒ Object
34 35 36 |
# File 'lib/populus/dsl.rb', line 34 def runs(&) @wrap_obj.runner = end |