class Arel::Nodes::SelectStatement
Attributes
Public Class Methods
Source
# File lib/arel/nodes/select_statement.rb, line 8 def initialize cores = [SelectCore.new] super() @cores = cores @orders = [] @limit = nil @lock = nil @offset = nil @with = nil end
Calls superclass method
Arel::Nodes::Node::new
Public Instance Methods
Source
# File lib/arel/nodes/select_statement.rb, line 28 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: ==
Source
# File lib/arel/nodes/select_statement.rb, line 24 def hash [@cores, @orders, @limit, @lock, @offset, @with].hash end
Source
# File lib/arel/nodes/select_statement.rb, line 18 def initialize_copy other super @cores = @cores.map { |x| x.clone } @orders = @orders.map { |x| x.clone } end
Calls superclass method