Sha256: 519b746a467af52a8bd271a8bbe419f6f957ff19a83d37c4bf7d414d76213c95

Contents?: true

Size: 1.55 KB

Versions: 94

Compression:

Stored size: 1.55 KB

Contents

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

klass.defineMethod( "to_sym", new RubyNoArgMethod(){ 
	protected RubyValue run(RubyValue receiver, RubyBlock block ){
		return ((RubySymbol)receiver).to_sym();}
});
klass.defineMethod( "to_i", new RubyNoArgMethod(){ 
	protected RubyValue run(RubyValue receiver, RubyBlock block ){
		return ((RubySymbol)receiver).to_i();}
});
klass.aliasMethod("to_int","to_i");
klass.defineMethod( "inspect", new RubyNoArgMethod(){ 
	protected RubyValue run(RubyValue receiver, RubyBlock block ){
		return ((RubySymbol)receiver).rubyInspect();}
});
klass.defineMethod( "to_s", new RubyNoArgMethod(){ 
	protected RubyValue run(RubyValue receiver, RubyBlock block ){
		return ((RubySymbol)receiver).to_s();}
});
klass.aliasMethod("id2name","to_s");
klass.aliasMethod("to_str","to_s");

klass.defineMethod( "length", new RubyNoArgMethod(){ 
	protected RubyValue run(RubyValue receiver, RubyBlock block ){
		return ((RubySymbol)receiver).rubyLength();}
});

klass.defineMethod( "===", new RubyOneArgMethod(){ 
	protected RubyValue run(RubyValue receiver, RubyValue arg, RubyBlock block ){
		return ((RubySymbol)receiver).sym_eqq(arg);}
});

klass.defineMethod( "[]", new RubyVarArgMethod(){ 
	protected RubyValue run(RubyValue receiver, RubyArray args, RubyBlock block ){
		return ((RubySymbol)receiver).array_access(args);}
});
klass.aliasMethod("slice","[]");

}}

Version data entries

94 entries across 94 versions & 1 rubygems

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