Class: Riot::Setup
- Inherits:
-
RunnableBlock
- Object
- RunnableBlock
- Riot::Setup
- Defined in:
- lib/riot/runnable.rb
Overview
RunnableBlock
Instance Attribute Summary
Attributes inherited from RunnableBlock
Instance Method Summary collapse
-
#initialize(&definition) ⇒ Setup
constructor
A new instance of Setup.
- #run(situation) ⇒ Object
Methods inherited from RunnableBlock
Constructor Details
#initialize(&definition) ⇒ Setup
Returns a new instance of Setup.
12 13 14 |
# File 'lib/riot/runnable.rb', line 12 def initialize(&definition) super("setup", &definition) end |
Instance Method Details
#run(situation) ⇒ Object
16 17 18 19 |
# File 'lib/riot/runnable.rb', line 16 def run(situation) situation.setup(&definition) [:setup] end |