Class: Statefully::State::None
- Inherits:
-
Statefully::State
- Object
- Statefully::State
- Statefully::State::None
- Includes:
- Singleton
- Defined in:
- lib/statefully/state.rb
Overview
None is a null-value of Statefully::State
Instance Attribute Summary
Attributes inherited from Statefully::State
Instance Method Summary collapse
-
#ancestry ⇒ Array<State>
Base case - None state does not have any ancestry.
-
#history ⇒ Array<Diff>
Return all historical changes to this Statefully::State.
-
#none? ⇒ Boolean
Check if the current Statefully::State is none (a null-object of Statefully::State).
Methods inherited from Statefully::State
create, #diff, #each, #failed?, #fetch, #finished?, #inspect, #key?, #keys, #resolve, #successful?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Statefully::State
Instance Method Details
#ancestry ⇒ Array<State>
Base case - Statefully::State::None state does not have any ancestry
311 312 313 |
# File 'lib/statefully/state.rb', line 311 def ancestry [] end |
#history ⇒ Array<Diff>
Return all historical changes to this Statefully::State
322 323 324 |
# File 'lib/statefully/state.rb', line 322 def history [] end |
#none? ⇒ Boolean
Check if the current Statefully::State is none (a null-object of Statefully::State)
337 338 339 |
# File 'lib/statefully/state.rb', line 337 def none? true end |