Sha256: 3a9197f337b971dab4be038c02d0c226a44ff1e3d54958f928662bcf54948774
Contents?: true
Size: 561 Bytes
Versions: 5
Compression:
Stored size: 561 Bytes
Contents
module EDN module Type class Symbol attr_reader :symbol def initialize(sym) @symbol = sym.to_sym end def ==(other) return false unless other.is_a?(Symbol) to_sym == other.to_sym end def eql?(other) return false unless other.is_a?(Symbol) to_sym == other.to_sym end def hash @symbol.hash end def to_sym @symbol end def to_s @symbol.to_s end def to_edn @symbol.to_s end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
edn-0.9.4 | lib/edn/type/symbol.rb |
edn-0.9.3 | lib/edn/type/symbol.rb |
edn-0.9.2 | lib/edn/type/symbol.rb |
edn-0.9.1 | lib/edn/type/symbol.rb |
edn-0.9.0 | lib/edn/type/symbol.rb |