Sha256: cb996f0ad245436752c9ca34f601f7c398f278bfabfb5dce607ff6492b945643

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 Bytes

Contents

module FlowErrorDemo
  class << self
    def no_first_node
      Flows::Flow.new(
        start_node: :first,
        node_map: {}
      )
    end

    def invalid_node_route
      Flows::Flow.new(
        start_node: :first,
        node_map: {
          first: Flows::Flow::Node.new(
            body: ->(_) {},
            router: Flows::Flow::Router::Custom.new(a: :b)
          )
        }
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flows-0.6.0 bin/errors_cli/flow_error_demo.rb
flows-0.5.1 bin/errors_cli/flow_error_demo.rb
flows-0.5.0 bin/errors_cli/flow_error_demo.rb