Sha256: b689a86a339bcc8ea0ce025beaefd68d02fb1934039c465718cf74de9ad8860c

Contents?: true

Size: 904 Bytes

Versions: 119

Compression:

Stored size: 904 Bytes

Contents

package com.xruby.GeneratedMethods;
import com.xruby.runtime.lang.*;
import com.xruby.runtime.builtin.RubyProc;
public class RubyProc_Methods{
public static void initMethods( RubyClass klass){

klass.defineMethod( "arity", new RubyNoArgMethod(){ 
	protected RubyValue run(RubyValue receiver, RubyBlock block ){
		return ((RubyProc)receiver).arity();}
});
klass.defineMethod( "==", new RubyOneArgMethod(){ 
	protected RubyValue run(RubyValue receiver, RubyValue arg, RubyBlock block ){
		return ((RubyProc)receiver).equal(arg);}
});
klass.aliasMethod("==","eql?");
klass.getSingletonClass().defineMethod( "new", new RubyNoArgMethod(){ 
	protected RubyValue run(RubyValue receiver, RubyBlock block ){
		return RubyProc.newProc(receiver, block);}
});
klass.defineMethod( "call", new RubyProc.Invoke() );
klass.aliasMethod("[]","call");
klass.aliasMethod("===","call");
klass.aliasMethod("yield","call");
}}

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
rhodes-3.5.1.12 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.5 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.4.2 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.4 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.3 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.3.beta.4 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.3.beta.3 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.3.beta.2 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.3.beta.1 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.2 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.2.beta.7 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.2.beta.6 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.2.beta.5 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.2.beta.4 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.2.beta.3 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.2.beta.2 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.2.beta.1 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.1 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.0 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-3.3.0.beta.3 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java