Sha256: b536f45b27edc99683383ee4fcc40ca037de65cbd4e326248f2ac3a793adb2d9

Contents?: true

Size: 236 Bytes

Versions: 2

Compression:

Stored size: 236 Bytes

Contents

module CypherBuilder
  def Limit(*args)
    Limit.new(*args)
  end

  class Limit
    include Resolver
    def initialize(value)
      @value = value
    end

    def as_cypher(_)
      sprintf('LIMIT %d', @value.to_i)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cypher_builder-0.0.5 lib/cypher_builder/limit.rb
cypher_builder-0.0.4 lib/cypher_builder/limit.rb