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

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.



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

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.



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

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.



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

def right
  @right
end

Instance Method Details

#>>(other) ⇒ Object

Compose this composite with another object



106
107
108
# File 'lib/rom/pipeline.rb', line 106

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)