Module: Flow::Flow::Core

Extended by:
ActiveSupport::Concern
Included in:
Flow::FlowBase
Defined in:
lib/flow/flow/core.rb

Instance Method Summary collapse

Instance Method Details

#initialize(state_instance = nil, **options) ⇒ Object



22
23
24
25
26
# File 'lib/flow/flow/core.rb', line 22

def initialize(state_instance = nil, **options)
  run_callbacks(:initialize) do
    @state = state_instance || state_class.new(**options)
  end
end