Module: WorkflowTemplate::State::Adapter::Abstract::ClassMethods

Included in:
Adapters::State::Default::ClassMethods, Adapters::State::DryMonads::ClassMethods
Defined in:
lib/workflow_template/state/adapter.rb

Instance Method Summary collapse

Instance Method Details

#canonical?(_wrapped_state) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


44
45
46
# File 'lib/workflow_template/state/adapter.rb', line 44

def wrap_error_with_bare_state(_error, _bare_state)
  raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented"
end

#wrap_success(_bare_state) ⇒ Object

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/workflow_template/state/adapter.rb', line 36

def wrap_success(_bare_state)
  raise NotImplementedError, "#{self.class.name}##{__method__} unimplemented"
end