Class: Statefully::State::Finished
- Inherits:
-
Statefully::State
- Object
- Statefully::State
- Statefully::State::Finished
- Defined in:
- lib/statefully/state.rb
Overview
Finished state is a state which is successful, but should not be processed any further. This could be useful for things like early returns.
Instance Attribute Summary
Attributes inherited from Statefully::State
Instance Method Summary collapse
-
#diff ⇒ Diff::Finished
Return a Diff between current and previous Statefully::State.
-
#finished? ⇒ Boolean
Check if the current Statefully::State is finished.
Methods inherited from Statefully::State
#ancestry, create, #each, #failed?, #fetch, #history, #inspect, #key?, #keys, #none?, #resolve, #successful?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Statefully::State
Instance Method Details
#diff ⇒ Diff::Finished
Return a Diff between current and previous Statefully::State
This method reeks of :reek:UtilityFunction - just implementing an API.
485 486 487 |
# File 'lib/statefully/state.rb', line 485 def diff Diff::Finished.instance end |
#finished? ⇒ Boolean
Check if the current Statefully::State is finished
500 501 502 |
# File 'lib/statefully/state.rb', line 500 def finished? true end |