class Arel::Nodes::And

Attributes

children[R]

Public Class Methods

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

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
# File lib/arel/nodes/and.rb, line 23
def eql? other
  self.class == other.class &&
    self.children == other.children
end
Also aliased as: ==
hash() click to toggle source
# File lib/arel/nodes/and.rb, line 19
def hash
  children.hash
end
left() click to toggle source
# File lib/arel/nodes/and.rb, line 11
def left
  children.first
end
right() click to toggle source
# File lib/arel/nodes/and.rb, line 15
def right
  children[1]
end