class Arel::Nodes::Extract

Attributes

field[RW]

Public Instance Methods

==(other) click to toggle source
Alias for: eql?
eql?(other) click to toggle source
# File lib/arel/nodes/extract.rb, line 19
def eql? other
  super &&
    self.field == other.field
end
Also aliased as: ==
hash() click to toggle source
# File lib/arel/nodes/extract.rb, line 15
def hash
  super ^ @field.hash
end

Public Class Methods

new(expr, field) click to toggle source
# File lib/arel/nodes/extract.rb, line 10
def initialize expr, field
  super(expr)
  @field = field
end