class Arel::Nodes::SelectStatement
Attributes
cores[R]
limit[RW]
lock[RW]
offset[RW]
orders[RW]
with[RW]
Public Class Methods
new(cores = [SelectCore.new])
click to toggle source
Calls superclass method
Arel::Nodes::Node.new
# File lib/arel/nodes/select_statement.rb, line 7 def initialize cores = [SelectCore.new] super() @cores = cores @orders = [] @limit = nil @lock = nil @offset = nil @with = nil end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/arel/nodes/select_statement.rb, line 27 def eql? other self.class == other.class && self.cores == other.cores && self.orders == other.orders && self.limit == other.limit && self.lock == other.lock && self.offset == other.offset && self.with == other.with end
Also aliased as: ==
hash()
click to toggle source
# File lib/arel/nodes/select_statement.rb, line 23 def hash [@cores, @orders, @limit, @lock, @offset, @with].hash end
initialize_copy(other)
click to toggle source
Calls superclass method
# File lib/arel/nodes/select_statement.rb, line 17 def initialize_copy other super @cores = @cores.map { |x| x.clone } @orders = @orders.map { |x| x.clone } end