lib/nydp/symbol.rb in nydp-0.0.8 vs lib/nydp/symbol.rb in nydp-0.0.9
- old
+ new
@@ -36,13 +36,16 @@
def self.find name, ns
ns[name.to_sym]
end
- def nydp_type ; :symbol ; end
- def inspect ; @inspection ; end
- def to_s ; name.to_s ; end
- def to_ruby ; name ; end
+ def nydp_type ; :symbol ; end
+ def inspect ; @inspection ; end
+ def to_s ; name.to_s ; end
+ def to_sym ; name ; end
+ def to_ruby ; to_sym ; end
+ def hash ; name.hash ; end
+ def eql? other ; self == other ; end
def == other
other.is_a?(Nydp::Symbol) && (self.name == other.name)
end