platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubySymbol_Methods.java in rhodes-1.5.5 vs platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubySymbol_Methods.java in rhodes-2.0.0.beta1
- old
+ new
@@ -20,9 +20,10 @@
klass.defineMethod( "to_s", new RubyNoArgMethod(){
protected RubyValue run(RubyValue receiver, RubyBlock block ){
return ((RubySymbol)receiver).to_s();}
});
klass.aliasMethod("id2name","to_s");
+klass.aliasMethod("to_str","to_s");
klass.defineMethod( "===", new RubyOneArgMethod(){
protected RubyValue run(RubyValue receiver, RubyValue arg, RubyBlock block ){
return ((RubySymbol)receiver).sym_eqq(arg);}
});