Sha256: 0da843782ac9a71c328578bb6878521072d39c52755966e9a47dcd854566479e
Contents?: true
Size: 693 Bytes
Versions: 118
Compression:
Stored size: 693 Bytes
Contents
package com.xruby.GeneratedMethods; import com.xruby.runtime.lang.*; import com.xruby.runtime.builtin.RubyInteger; public class RubyInteger_Methods{ public static void initMethods( RubyClass klass){ klass.defineMethod( "times", new RubyNoArgMethod(){ protected RubyValue run(RubyValue receiver, RubyBlock block ){ return ((RubyInteger)receiver).times(block);} }); klass.defineMethod( "chr", new RubyNoArgMethod(){ protected RubyValue run(RubyValue receiver, RubyBlock block ){ return ((RubyInteger)receiver).chr();} }); klass.defineMethod( "ord", new RubyNoArgMethod(){ protected RubyValue run(RubyValue receiver, RubyBlock block ){ return ((RubyInteger)receiver).ord();} }); }}
Version data entries
118 entries across 118 versions & 1 rubygems