Sha256: 7e4d0039f6a868df49244d36ba009e618c9cc4a1d56b6156868c77ac74bf620c

Contents?: true

Size: 260 Bytes

Versions: 5

Compression:

Stored size: 260 Bytes

Contents

module Piglet
  module Relation
    class Limit # :nodoc:
      include Relation
    
      def initialize(relation, n)
        @sources, @n = [relation], n
      end
    
      def to_s
        "LIMIT #{@sources.first.alias} #{@n}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
piglet-0.2.4 lib/piglet/relation/limit.rb
piglet-0.2.3 lib/piglet/relation/limit.rb
piglet-0.2.2 lib/piglet/relation/limit.rb
piglet-0.2.0 lib/piglet/relation/limit.rb
piglet-0.1.2 lib/piglet/relation/limit.rb