Module: WorkflowTemplate::State::Adapter::Abstract::ClassMethods
- Defined in:
- lib/workflow_template/state/adapter.rb
Instance Method Summary collapse
- #canonical?(_wrapped_state) ⇒ Boolean
- #error?(_wrapped_state) ⇒ Boolean
- #flat_map_unwrappable_state(_wrapped_state) ⇒ Object
- #map_unwrappable_state(_wrapped_state) ⇒ Object
- #run_handler!(state, binding, &block) ⇒ Object
- #unwrap_error(_wrapped_state) ⇒ Object
- #unwrap_success(_wrapped_state) ⇒ Object
- #wrap_error_with_bare_state(_error, _bare_state) ⇒ Object
- #wrap_success(_bare_state) ⇒ Object
Instance Method Details
#canonical?(_wrapped_state) ⇒ Boolean
28 29 30 |
# File 'lib/workflow_template/state/adapter.rb', line 28 def canonical?(_wrapped_state) raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented" end |
#error?(_wrapped_state) ⇒ Boolean
32 33 34 |
# File 'lib/workflow_template/state/adapter.rb', line 32 def error?(_wrapped_state) raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented" end |
#flat_map_unwrappable_state(_wrapped_state) ⇒ Object
56 57 58 |
# File 'lib/workflow_template/state/adapter.rb', line 56 def flat_map_unwrappable_state(_wrapped_state) raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented" end |
#map_unwrappable_state(_wrapped_state) ⇒ Object
52 53 54 |
# File 'lib/workflow_template/state/adapter.rb', line 52 def map_unwrappable_state(_wrapped_state) raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented" end |
#run_handler!(state, binding, &block) ⇒ Object
60 61 62 |
# File 'lib/workflow_template/state/adapter.rb', line 60 def run_handler!(state, binding, &block) raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented" end |
#unwrap_error(_wrapped_state) ⇒ Object
48 49 50 |
# File 'lib/workflow_template/state/adapter.rb', line 48 def unwrap_error(_wrapped_state) raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented" end |
#unwrap_success(_wrapped_state) ⇒ Object
40 41 42 |
# File 'lib/workflow_template/state/adapter.rb', line 40 def unwrap_success(_wrapped_state) raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented" end |
#wrap_error_with_bare_state(_error, _bare_state) ⇒ Object
44 45 46 |
# File 'lib/workflow_template/state/adapter.rb', line 44 def (_error, ) raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented" end |
#wrap_success(_bare_state) ⇒ Object
36 37 38 |
# File 'lib/workflow_template/state/adapter.rb', line 36 def wrap_success() raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented" end |