Class: Workflow::State
- Inherits:
-
Object
- Object
- Workflow::State
- Defined in:
- lib/workflow.rb
Instance Attribute Summary (collapse)
-
- (Object) events
Returns the value of attribute events.
-
- (Object) meta
Returns the value of attribute meta.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) on_entry
Returns the value of attribute on_entry.
-
- (Object) on_exit
Returns the value of attribute on_exit.
Instance Method Summary (collapse)
-
- (State) initialize(name, meta = {})
constructor
A new instance of State.
- - (Object) to_s
- - (Object) to_sym
Constructor Details
- (State) initialize(name, meta = {})
A new instance of State
83 84 85 |
# File 'lib/workflow.rb', line 83 def initialize(name, = {}) @name, @events, = name, Hash.new, end |
Instance Attribute Details
- (Object) events
Returns the value of attribute events
81 82 83 |
# File 'lib/workflow.rb', line 81 def events @events end |
- (Object) meta
Returns the value of attribute meta
81 82 83 |
# File 'lib/workflow.rb', line 81 def end |
- (Object) name
Returns the value of attribute name
81 82 83 |
# File 'lib/workflow.rb', line 81 def name @name end |
- (Object) on_entry
Returns the value of attribute on_entry
81 82 83 |
# File 'lib/workflow.rb', line 81 def on_entry @on_entry end |
- (Object) on_exit
Returns the value of attribute on_exit
81 82 83 |
# File 'lib/workflow.rb', line 81 def on_exit @on_exit end |
Instance Method Details
- (Object) to_s
87 88 89 |
# File 'lib/workflow.rb', line 87 def to_s "#{name}" end |
- (Object) to_sym
91 92 93 |
# File 'lib/workflow.rb', line 91 def to_sym name.to_sym end |