class Arel::Nodes::Binary

Attributes

left[RW]
right[RW]

Public Class Methods

new(left, right) click to toggle source
Calls superclass method Arel::Nodes::Node.new
# File lib/arel/nodes/binary.rb, line 6
def initialize left, right
  super()
  @left  = left
  @right = right
end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
# File lib/arel/nodes/binary.rb, line 22
def eql? other
  self.class == other.class &&
    self.left == other.left &&
    self.right == other.right
end
Also aliased as: ==
hash() click to toggle source
# File lib/arel/nodes/binary.rb, line 18
def hash
  [self.class, @left, @right].hash
end
initialize_copy(other) click to toggle source
Calls superclass method
# File lib/arel/nodes/binary.rb, line 12
def initialize_copy other
  super
  @left  = @left.clone if @left
  @right = @right.clone if @right
end