Sha256: f24945871d9800a56fe2bcaa56dd8b98a7f1ef5e42f335c87dacf29b7976ab46

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

require 'transflow/version'
require 'transflow/flow_dsl'

# Define a transaction flow
#
# @example
#
#   container = { do_one: some_obj, do_two: some_obj }
#
#   my_business_flow = Transflow(container: container) do
#     step(:one, with: :do_one) { step(:two, with: :do_two }
#   end
#
#   my_business_flow[some_input]
#
# @options [Hash] options The option hash
#
# @api public
def Transflow(options = {}, &block)
  Transflow::FlowDSL.new(options, &block).call
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transflow-0.0.2 lib/transflow.rb