class Arel::Nodes::Binary

Attributes

left[RW]
right[RW]

Public Instance Methods

==(other) click to toggle source
Alias for: eql?
eql?(other) click to toggle source
# File lib/arel/nodes/binary.rb, line 23
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 19
def hash
  [self.class, @left, @right].hash
end
initialize_copy(other) click to toggle source
# File lib/arel/nodes/binary.rb, line 13
def initialize_copy other
  super
  @left  = @left.clone if @left
  @right = @right.clone if @right
end

Public Class Methods

new(left, right) click to toggle source
# File lib/arel/nodes/binary.rb, line 7
def initialize left, right
  super()
  @left  = left
  @right = right
end