Class: Workflow::State
- Inherits:
-
Object
- Object
- Workflow::State
- Defined in:
- lib/workflow.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
Returns the value of attribute events.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#name ⇒ Object
Returns the value of attribute name.
-
#on_entry ⇒ Object
Returns the value of attribute on_entry.
-
#on_exit ⇒ Object
Returns the value of attribute on_exit.
Instance Method Summary collapse
-
#initialize(name, meta = {}) ⇒ State
constructor
A new instance of State.
- #to_s ⇒ Object
- #to_sym ⇒ Object
Constructor Details
#initialize(name, meta = {}) ⇒ State
Returns a new instance of State.
93 94 95 |
# File 'lib/workflow.rb', line 93 def initialize(name, = {}) @name, @events, @meta = name, Hash.new, end |
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
91 92 93 |
# File 'lib/workflow.rb', line 91 def events @events end |
#meta ⇒ Object
Returns the value of attribute meta.
91 92 93 |
# File 'lib/workflow.rb', line 91 def @meta end |
#name ⇒ Object
Returns the value of attribute name.
91 92 93 |
# File 'lib/workflow.rb', line 91 def name @name end |
#on_entry ⇒ Object
Returns the value of attribute on_entry.
91 92 93 |
# File 'lib/workflow.rb', line 91 def on_entry @on_entry end |
#on_exit ⇒ Object
Returns the value of attribute on_exit.
91 92 93 |
# File 'lib/workflow.rb', line 91 def on_exit @on_exit end |
Instance Method Details
#to_s ⇒ Object
97 98 99 |
# File 'lib/workflow.rb', line 97 def to_s "#{name}" end |
#to_sym ⇒ Object
101 102 103 |
# File 'lib/workflow.rb', line 101 def to_sym name.to_sym end |