Module: Workflow::Specification::StateTagHelpers
- Defined in:
- lib/workflow/specification.rb
Instance Method Summary collapse
Instance Method Details
#initial? ⇒ Boolean
147 148 149 |
# File 'lib/workflow/specification.rb', line 147 def initial? all_states.index(self).zero? end |
#terminal? ⇒ Boolean
151 152 153 |
# File 'lib/workflow/specification.rb', line 151 def terminal? events.empty? end |