Module: Flow::Core

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

Instance Method Summary collapse

Instance Method Details

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



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

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