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 10 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 19 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 15 def hash super ^ @field.hash end