class EDN::Type::Symbol
Attributes
symbol[R]
Public Class Methods
new(sym)
click to toggle source
# File lib/edn/type/symbol.rb, line 8 def initialize(sym) @symbol = sym.to_sym end
Public Instance Methods
==(other)
click to toggle source
# File lib/edn/type/symbol.rb, line 12 def ==(other) return false unless other.is_a?(Symbol) to_sym == other.to_sym end
eql?(other)
click to toggle source
# File lib/edn/type/symbol.rb, line 17 def eql?(other) return false unless other.is_a?(Symbol) to_sym == other.to_sym end
hash()
click to toggle source
# File lib/edn/type/symbol.rb, line 22 def hash @symbol.hash end
to_edn()
click to toggle source
# File lib/edn/type/symbol.rb, line 34 def to_edn @symbol.to_s end
to_s()
click to toggle source
# File lib/edn/type/symbol.rb, line 30 def to_s @symbol.to_s end
to_sym()
click to toggle source
# File lib/edn/type/symbol.rb, line 26 def to_sym @symbol end