Class: OFlow::Test::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/oflow/test/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dest, box) ⇒ Action

Returns a new instance of Action.



9
10
11
12
# File 'lib/oflow/test/action.rb', line 9

def initialize(dest, box)
  @dest = dest
  @box = box
end

Instance Attribute Details

#boxObject (readonly)

Returns the value of attribute box.



7
8
9
# File 'lib/oflow/test/action.rb', line 7

def box
  @box
end

#destObject (readonly)

Returns the value of attribute dest.



6
7
8
# File 'lib/oflow/test/action.rb', line 6

def dest
  @dest
end

Instance Method Details

#to_sObject Also known as: inspect



14
15
16
# File 'lib/oflow/test/action.rb', line 14

def to_s()
  "#{@dest}: #{box.contents}"
end