Class: OFlow::Test::Action
- Inherits:
-
Object
- Object
- OFlow::Test::Action
- Defined in:
- lib/oflow/test/action.rb
Instance Attribute Summary collapse
-
#box ⇒ Object
readonly
Returns the value of attribute box.
-
#dest ⇒ Object
readonly
Returns the value of attribute dest.
Instance Method Summary collapse
-
#initialize(dest, box) ⇒ Action
constructor
A new instance of Action.
- #to_s ⇒ Object (also: #inspect)
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
#box ⇒ Object (readonly)
Returns the value of attribute box.
7 8 9 |
# File 'lib/oflow/test/action.rb', line 7 def box @box end |
#dest ⇒ Object (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_s ⇒ Object Also known as: inspect
14 15 16 |
# File 'lib/oflow/test/action.rb', line 14 def to_s() "#{@dest}: #{box.contents}" end |