Class: ROM::Pipeline::Composite Private

Inherits:
BasicObject
Includes:
Proxy
Defined in:
core/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

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.



104
105
106
107
# File 'core/lib/rom/pipeline.rb', line 104

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.



98
99
100
# File 'core/lib/rom/pipeline.rb', line 98

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.



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

def right
  @right
end

Instance Method Details

#>>(other) ⇒ Object

Compose this composite with another object



112
113
114
# File 'core/lib/rom/pipeline.rb', line 112

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

#respond_to_missing?(name, include_private = false) ⇒ Boolean Originally defined in module Proxy

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:

  • (Boolean)