Module: Linearly::Mixins::FlowBuilder

Included in:
Step::Dynamic, Step::Static
Defined in:
lib/linearly/mixins/flow_builder.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.>>(other) ⇒ Flow

Convenience method to create a Flow from linked Steps

Examples:

flow =
  Users::Find
  .>> Users::Update
  .>> Users::Save

Parameters:

  • other (Step)

    next step in the Flow

Returns:



16
17
18
# File 'lib/linearly/mixins/flow_builder.rb', line 16

def >>(other)
  Flow.new(self, other)
end

Instance Method Details

#>>(other) ⇒ Flow

Convenience method to create a Flow from linked Steps

Examples:

flow =
  Users::Find
  .>> Users::Update
  .>> Users::Save

Parameters:

  • other (Step)

    next step in the Flow

Returns:



16
17
18
# File 'lib/linearly/mixins/flow_builder.rb', line 16

def >>(other)
  Flow.new(self, other)
end