Class: Decouplio::Flow

Inherits:
Object
  • Object
show all
Defined in:
lib/decouplio/flow.rb

Class Method Summary collapse

Class Method Details

.call(logic:, action_class:) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/decouplio/flow.rb', line 8

def self.call(logic:, action_class:)
  logic_container_raw_data = Class.new(Decouplio::LogicDsl, &logic)

  Decouplio::Composer.compose(
    logic_container_raw_data: logic_container_raw_data,
    action_class: action_class
  )
end