platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubyString_Methods.java in rhodes-1.2.2 vs platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubyString_Methods.java in rhodes-1.4.0
- old
+ new
@@ -115,10 +115,12 @@
});
klass.defineMethod( "[]", new RubyVarArgMethod(){
protected RubyValue run(RubyValue receiver, RubyArray args, RubyBlock block ){
return ((RubyString)receiver).array_access(args);}
});
+klass.aliasMethod("slice","[]");
+
klass.defineMethod( "dump", new RubyNoArgMethod(){
protected RubyValue run(RubyValue receiver, RubyBlock block ){
return ((RubyString)receiver).rubyDump();}
});
klass.defineMethod( "to_i", new RubyNoOrOneArgMethod(){
@@ -149,11 +151,10 @@
});
klass.defineMethod( "eql?", new RubyOneArgMethod(){
protected RubyValue run(RubyValue receiver, RubyValue arg, RubyBlock block ){
return ((RubyString)receiver).opEql(arg);}
});
-
klass.defineMethod( "delete", new RubyVarArgMethod(){
protected RubyValue run(RubyValue receiver, RubyArray args, RubyBlock block ){
return ((RubyString)receiver).delete(args);}
});
klass.defineMethod( "length", new RubyNoArgMethod(){
@@ -248,9 +249,13 @@
return ((RubyString)receiver).opEndWith(arg);}
});
klass.defineMethod( "end_with?", new RubyVarArgMethod(){
protected RubyValue run(RubyValue receiver, RubyArray arg, RubyBlock block ){
return ((RubyString)receiver).opEndWith(arg);}
+});
+klass.defineMethod( "ord", new RubyNoArgMethod(){
+ protected RubyValue run(RubyValue receiver, RubyBlock block ){
+ return ((RubyString)receiver).ord();}
});
klass.defineAllocMethod(new RubyNoArgMethod(){
protected RubyValue run(RubyValue receiver, RubyBlock block ) {
return RubyString.alloc(receiver); }} );