module ROM::Pipeline::Operator

Common `>>` operator extension

@api private

Public Instance Methods

>>(other) click to toggle source

Compose two relation with a left-to-right composition

@example

users.by_name('Jane') >> tasks.for_users

@param [Relation] other The right relation

@return [Relation::Composite]

@api public

# File lib/rom/pipeline.rb, line 22
def >>(other)
  composite_class.new(self, other)
end

Private Instance Methods

composite_class() click to toggle source

@api private

# File lib/rom/pipeline.rb, line 29
def composite_class
  raise NotImplementedError
end