Class: FlowMachine::StateCallback

Inherits:
Callback
  • Object
show all
Defined in:
lib/flow_machine/state_callback.rb

Direct Known Subclasses

ChangeCallback

Instance Attribute Summary

Attributes inherited from Callback

#method, #options

Instance Method Summary collapse

Methods inherited from Callback

#call, #call!, #initialize, #run_method_or_lambda, #will_run?

Constructor Details

This class inherits a constructor from FlowMachine::Callback

Instance Method Details

#run_method(target, method) ⇒ Object



3
4
5
# File 'lib/flow_machine/state_callback.rb', line 3

def run_method(target, method)
  target.run_workflow_method(method)
end