class Arel::Nodes::Extract
Attributes
field[RW]
Public Class Methods
new(expr, field)
click to toggle source
Calls superclass method
Arel::Nodes::Unary.new
# File lib/arel/nodes/extract.rb, line 9 def initialize expr, field super(expr) @field = field end
Public Instance Methods
eql?(other)
click to toggle source
Calls superclass method
Arel::Nodes::Unary#eql?
# File lib/arel/nodes/extract.rb, line 18 def eql? other super && self.field == other.field end
Also aliased as: ==
hash()
click to toggle source
Calls superclass method
Arel::Nodes::Unary#hash
# File lib/arel/nodes/extract.rb, line 14 def hash super ^ @field.hash end