Sha256: 42234cf3b7c79d10092b36d8d01a366000361fe1eded25bfafbd45c79ceae5d2
Contents?: true
Size: 1.03 KB
Versions: 119
Compression:
Stored size: 1.03 KB
Contents
package com.xruby.GeneratedMethods; import com.xruby.runtime.lang.*; import com.xruby.runtime.builtin.RubyNumeric; public class RubyNumeric_Methods{ public static void initMethods( RubyClass klass){ klass.defineMethod( "-@", new RubyNoArgMethod(){ protected RubyValue run(RubyValue receiver, RubyBlock block ){ return ((RubyNumeric)receiver).uminus();} }); klass.defineMethod( "coerce", new RubyOneArgMethod(){ protected RubyValue run(RubyValue receiver, RubyValue arg, RubyBlock block ){ return ((RubyNumeric)receiver).coerce(arg);} }); klass.defineMethod( "+@", new RubyNoArgMethod(){ protected RubyValue run(RubyValue receiver, RubyBlock block ){ return ((RubyNumeric)receiver).uplus();} }); klass.defineMethod( "step", new RubyOneOrTwoArgMethod(){ protected RubyValue run(RubyValue receiver, RubyValue arg, RubyBlock block ){ return ((RubyNumeric)receiver).step(arg, block);} protected RubyValue run(RubyValue receiver, RubyValue arg0, RubyValue arg1, RubyBlock block ){ return ((RubyNumeric)receiver).step(arg0, arg1, block);} }); }}
Version data entries
119 entries across 119 versions & 1 rubygems