Sha256: c3de3ce966ddceed2d6da5961b329fdeae5fb4512a4d1cd75e828a4d08f689c7
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true require_relative 'atomic_term' module MiniKraken module Core # A specialized atomic term that represents a symbolic value. # in MiniKraken class KSymbol < AtomicTerm # @param aValue [Symbol] Ruby representation of symbol value def initialize(aValue) super(aValue) end # Returns the name or string corresponding to value. # @return [String] def id2name value.id2name end # Returns a string representing the MiniKraken symbol. def to_s ':' + id2name end end # class end # module end # module
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mini_kraken-0.2.00 | lib/mini_kraken/core/k_symbol.rb |