Sha256: c74c117963d651beb84e77f993eea5713d92b5d892b1eaeba5d1bf38559a8767

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

module Arel
  module Nodes
    class SelectStatement
      attr_reader :cores
      attr_accessor :limit, :orders, :lock, :offset

      def initialize cores = [SelectCore.new]
        @cores  = cores
        @orders = []
        @limit  = nil
        @lock   = nil
        @offset = nil
      end

      def initialize_copy other
        super
        @cores  = @cores.map { |x| x.clone }
        @orders = @orders.map { |x| x.clone }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arel-2.0.4 lib/arel/nodes/select_statement.rb
arel-2.0.3 lib/arel/nodes/select_statement.rb
arel-2.0.2 lib/arel/nodes/select_statement.rb
arel-2.0.1 lib/arel/nodes/select_statement.rb
arel-2.0.0 lib/arel/nodes/select_statement.rb