class Arel::Nodes::Unary

Attributes

expr[RW]
value[RW]

Public Class Methods

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

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
# File lib/arel/nodes/unary.rb, line 16
def eql? other
  self.class == other.class &&
    self.expr == other.expr
end
Also aliased as: ==
hash() click to toggle source
# File lib/arel/nodes/unary.rb, line 12
def hash
  @expr.hash
end