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 7
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 24
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 20
def hash
  children.hash
end
left() click to toggle source
# File lib/arel/nodes/and.rb, line 12
def left
  children.first
end
right() click to toggle source
# File lib/arel/nodes/and.rb, line 16
def right
  children[1]
end