123456789_123456789_123456789_123456789_123456789_

Class: Arel::Collectors::Composite

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: activerecord/lib/arel/collectors/composite.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(left, right) ⇒ Composite

[ GitHub ]

  
# File 'activerecord/lib/arel/collectors/composite.rb', line 9

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

Instance Attribute Details

#left (readonly, private)

[ GitHub ]

  
# File 'activerecord/lib/arel/collectors/composite.rb', line 43

attr_reader :left, :right

#preparable (rw)

[ GitHub ]

  
# File 'activerecord/lib/arel/collectors/composite.rb', line 6

attr_accessor :preparable

#retryable (rw)

[ GitHub ]

  
# File 'activerecord/lib/arel/collectors/composite.rb', line 7

attr_reader :retryable

#retryable=(retryable) (rw)

[ GitHub ]

  
# File 'activerecord/lib/arel/collectors/composite.rb', line 14

def retryable=(retryable)
  left.retryable = retryable
  right.retryable = retryable
  @retryable = retryable
end

#right (readonly, private)

[ GitHub ]

  
# File 'activerecord/lib/arel/collectors/composite.rb', line 43

attr_reader :left, :right

Instance Method Details

#<<(str)

[ GitHub ]

  
# File 'activerecord/lib/arel/collectors/composite.rb', line 20

def <<(str)
  left << str
  right << str
  self
end

#add_bind(bind, &block)

[ GitHub ]

  
# File 'activerecord/lib/arel/collectors/composite.rb', line 26

def add_bind(bind, &block)
  left.add_bind bind, &block
  right.add_bind bind, &block
  self
end

#add_binds(binds, proc_for_binds = nil, &block)

[ GitHub ]

  
# File 'activerecord/lib/arel/collectors/composite.rb', line 32

def add_binds(binds, proc_for_binds = nil, &block)
  left.add_binds(binds, proc_for_binds, &block)
  right.add_binds(binds, proc_for_binds, &block)
  self
end

#value

[ GitHub ]

  
# File 'activerecord/lib/arel/collectors/composite.rb', line 38

def value
  [left.value, right.value]
end