Class: Riot::Setup

Inherits:
RunnableBlock show all
Defined in:
lib/riot/runnable.rb

Overview

RunnableBlock

Instance Attribute Summary

Attributes inherited from RunnableBlock

#definition

Instance Method Summary collapse

Methods inherited from RunnableBlock

#to_s

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