Class: ROM::Pipeline::Composite Private

Inherits:
Object
  • Object
show all
Includes:
Proxy
Defined in:
lib/rom/pipeline.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.

Base composite class with left-to-right pipeline behavior

Direct Known Subclasses

Commands::Composite, Relation::Composite

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Proxy

#respond_to_missing?

Constructor Details

#initialize(left, right) ⇒ Composite

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.

Returns a new instance of Composite.



94
95
96
97
# File 'lib/rom/pipeline.rb', line 94

def initialize(left, right)
  @left = left
  @right = right
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ROM::Pipeline::Proxy

Instance Attribute Details

#leftObject (readonly)

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.



88
89
90
# File 'lib/rom/pipeline.rb', line 88

def left
  @left
end

#rightObject (readonly)

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.



91
92
93
# File 'lib/rom/pipeline.rb', line 91

def right
  @right
end

Instance Method Details

#>>(other) ⇒ Object

Compose this composite with another object



102
103
104
# File 'lib/rom/pipeline.rb', line 102

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