Class: OFlow::Actor::Spec
- Inherits:
-
Object
- Object
- OFlow::Actor::Spec
- Defined in:
- lib/oflow/actor.rb
Instance Attribute Summary collapse
-
#op ⇒ Object
(also: #dest)
readonly
Returns the value of attribute op.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(op, type) ⇒ Spec
constructor
A new instance of Spec.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
#initialize(op, type) ⇒ Spec
Returns a new instance of Spec.
62 63 64 65 66 67 68 69 |
# File 'lib/oflow/actor.rb', line 62 def initialize(op, type) if op.nil? || op.is_a?(Symbol) @op = op else @op = op.to_sym end @type = type end |
Instance Attribute Details
#op ⇒ Object (readonly) Also known as: dest
Returns the value of attribute op.
59 60 61 |
# File 'lib/oflow/actor.rb', line 59 def op @op end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
60 61 62 |
# File 'lib/oflow/actor.rb', line 60 def type @type end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
73 74 75 |
# File 'lib/oflow/actor.rb', line 73 def to_s() "Spec{op: #{@op}, type: #{@type}}" end |