class Ruspea::Runtime::Sym
Attributes
id[R]
Public Class Methods
new(id)
click to toggle source
# File lib/ruspea/runtime/sym.rb, line 3 def initialize(id) @id = String(id.to_s) end
Public Instance Methods
==(other)
click to toggle source
# File lib/ruspea/runtime/sym.rb, line 15 def ==(other) return false if self.class != other.class @id == other.id end
eql?(other)
click to toggle source
# File lib/ruspea/runtime/sym.rb, line 11 def eql?(other) self == other end
hash()
click to toggle source
# File lib/ruspea/runtime/sym.rb, line 20 def hash @id.hash + :rsp_sym.hash end
to_s()
click to toggle source
# File lib/ruspea/runtime/sym.rb, line 7 def to_s @id end