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-2.2.5.beta.1 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.4.beta.1 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.3 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.3.beta.1 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.2 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.2.beta.1 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.1 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.1.beta.2 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.1.beta.1 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.0 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.0.beta.3 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.0.beta.2 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.2.0.beta.1 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.1.0 platform/bb/RubyVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.0.3 platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.0.2 platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.0.0 platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.0.0.rc2 platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.0.0.rc1 platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java
rhodes-2.0.0.beta11 platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubyProc_Methods.java