Module: Fire::DSL
- Defined in:
- lib/fire/dsl.rb
Instance Method Summary collapse
- #desc(description) ⇒ Object
- #rule(logic, &procedure) ⇒ Object
- #state(name, &condition) ⇒ Object
- #task(name_and_logic, &procedure) ⇒ Object
-
#trip(state) ⇒ Object
def file(pattern, &procedure) Fire.system.file(pattern, &procedure) end.
Instance Method Details
#desc(description) ⇒ Object
24 25 26 |
# File 'lib/fire/dsl.rb', line 24 def desc(description) Fire.system.desc(description) end |
#rule(logic, &procedure) ⇒ Object
12 13 14 |
# File 'lib/fire/dsl.rb', line 12 def rule(logic, &procedure) Fire.system.rule(logic, &procedure) end |
#state(name, &condition) ⇒ Object
8 9 10 |
# File 'lib/fire/dsl.rb', line 8 def state(name, &condition) Fire.system.state(name, &condition) end |