# 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
# 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
# File lib/arel/nodes/select_statement.rb, line 23 def hash [@cores, @orders, @limit, @lock, @offset, @with].hash end
# 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