Sha256: 0aef9c61490238b38ac465f114304702b343bdf99d6f070076ebec15dfc15707

Contents?: true

Size: 616 Bytes

Versions: 10

Compression:

Stored size: 616 Bytes

Contents

# frozen_string_literal: true

module Katalyst
  module Tables
    module Collection
      module Query
        class UntaggedLiteral
          attr_accessor :query, :value

          def initialize(value:, start:)
            @value = value
            @start = start
            @end = start + value.length
          end

          def literal?
            true
          end

          def tagged?
            false
          end

          def range
            @start..@end
          end

          def to_str
            @value
          end
          alias to_s to_str
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katalyst-tables-3.7.0 app/models/concerns/katalyst/tables/collection/query/untagged_literal.rb
katalyst-tables-3.6.2 app/models/concerns/katalyst/tables/collection/query/untagged_literal.rb
katalyst-tables-3.6.1 app/models/concerns/katalyst/tables/collection/query/untagged_literal.rb
katalyst-tables-3.6.0 app/models/concerns/katalyst/tables/collection/query/untagged_literal.rb
katalyst-tables-3.5.5 app/models/concerns/katalyst/tables/collection/query/untagged_literal.rb
katalyst-tables-3.5.4 app/models/concerns/katalyst/tables/collection/query/untagged_literal.rb
katalyst-tables-3.5.3 app/models/concerns/katalyst/tables/collection/query/untagged_literal.rb
katalyst-tables-3.5.2 app/models/concerns/katalyst/tables/collection/query/untagged_literal.rb
katalyst-tables-3.5.1 app/models/concerns/katalyst/tables/collection/query/untagged_literal.rb
katalyst-tables-3.5.0 app/models/concerns/katalyst/tables/collection/query/untagged_literal.rb