Sha256: 738f27d4aa43492cb5ec776dfcf549a1c588bc65b336ebdf92c60700901fdf43

Contents?: true

Size: 426 Bytes

Versions: 3

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Synvert::Core::NodeQuery::Compiler
  # String represents a ruby string value.
  class String
    include Comparable

    # Initialize a String.
    # @param value [String] the string value
    def initialize(value:)
      @value = value
    end

    # Get valid operators.
    def valid_operators
      STRING_VALID_OPERATORS
    end

    def to_s
      "\"#{@value}\""
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
synvert-core-1.4.0 lib/synvert/core/node_query/compiler/string.rb
synvert-core-1.3.1 lib/synvert/core/node_query/compiler/string.rb
synvert-core-1.3.0 lib/synvert/core/node_query/compiler/string.rb