Sha256: 5b37d00890d030699d34b0416df8909edde8e5d324b0d4bae863b10b798bf4d5

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

require_relative 'atomic_term'

module MiniKraken
  module Atomic
    # A specialized atomic term that represents a string value
    # in MiniKraken.
    class KString < AtomicTerm
      # Returns a string representing the MiniKraken symbol.
      # @return [String]
      def to_s
        value
      end
    end # class
  end # module
end # module

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mini_kraken-0.3.03 lib/mini_kraken/atomic/k_string.rb
mini_kraken-0.3.02 lib/mini_kraken/atomic/k_string.rb
mini_kraken-0.3.01 lib/mini_kraken/atomic/k_string.rb
mini_kraken-0.3.00 lib/mini_kraken/atomic/k_string.rb