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
62 63 64 |
# File 'lib/workflow.rb', line 62 def initialize(name, = {}) @name, @events, = name, Hash.new, end |
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
60 61 62 |
# File 'lib/workflow.rb', line 60 def events @events end |
#meta ⇒ Object
Returns the value of attribute meta.
60 61 62 |
# File 'lib/workflow.rb', line 60 def end |
#name ⇒ Object
Returns the value of attribute name.
60 61 62 |
# File 'lib/workflow.rb', line 60 def name @name end |
#on_entry ⇒ Object
Returns the value of attribute on_entry.
60 61 62 |
# File 'lib/workflow.rb', line 60 def on_entry @on_entry end |
#on_exit ⇒ Object
Returns the value of attribute on_exit.
60 61 62 |
# File 'lib/workflow.rb', line 60 def on_exit @on_exit end |
Instance Method Details
#to_s ⇒ Object
66 67 68 |
# File 'lib/workflow.rb', line 66 def to_s "#{name}" end |
#to_sym ⇒ Object
70 71 72 |
# File 'lib/workflow.rb', line 70 def to_sym name.to_sym end |