Module: Wolflow::DSL::ChoiceDSL

Defined in:
lib/wolflow/dsl.rb

Instance Method Summary collapse

Instance Method Details

#connect(*ids, cond) ⇒ Object



82
83
84
85
86
87
88
# File 'lib/wolflow/dsl.rb', line 82

def connect(*ids, cond)
  return super unless ids.all?(String)

  specs = ids.map { |id| Simple.new(id: id, workflow_spec: @workflow_spec) }

  super(cond, *specs)
end