Class: Transflow::Transaction::Step Private

Inherits:
Object
  • Object
show all
Includes:
Dry::Pipeline::Mixin
Defined in:
lib/transflow/transaction.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Step wrapper object which adds ‘>>` operator

Class Method Summary collapse

Class Method Details

.[](op) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



23
24
25
26
27
28
29
# File 'lib/transflow/transaction.rb', line 23

def self.[](op)
  if op.respond_to?(:>>)
    op
  else
    Step.new(op)
  end
end