Sha256: fc880ccfc1af1615d86cfd57c265c0d2d228c1bcf20cfd006c2f30c6741342b5

Contents?: true

Size: 1.23 KB

Versions: 119

Compression:

Stored size: 1.23 KB

Contents

/**
 * Copyright 2005-2007 Xue Yong Zhi, Ye Zheng
 * Distributed under the BSD License
 */

package com.xruby.runtime.builtin;

import com.xruby.runtime.lang.RubyRuntime;
import com.xruby.runtime.lang.RubyValue;
//import com.xruby.runtime.lang.annotation.RubyLevelMethod;
//import com.xruby.runtime.lang.annotation.RubyLevelObject;

import j2me.lang.AssertMe;

//@RubyLevelObject(objectClass="Object")
public class RubyTopSelf {
    //@RubyLevelMethod(name="include", singleton=true)
    public static RubyValue include(RubyValue receiver) {
    	AssertMe.rho_assert(RubyRuntime.TOP_LEVEL_SELF_VALUE == receiver);
        return RubyRuntime.ObjectClass;
    }

    //@RubyLevelMethod(name="include", singleton=true)
    public static RubyValue include(RubyValue receiver, RubyValue arg) {
    	AssertMe.rho_assert(RubyRuntime.TOP_LEVEL_SELF_VALUE == receiver);
        RubyRuntime.ObjectClass.include(arg);
        return RubyRuntime.ObjectClass;
    }

    //@RubyLevelMethod(name="include", singleton=true)
    public static RubyValue include(RubyValue receiver, RubyArray args) {
    	AssertMe.rho_assert(RubyRuntime.TOP_LEVEL_SELF_VALUE == receiver);
        RubyRuntime.ObjectClass.include(args);
        return RubyRuntime.ObjectClass;
    }
    
}

Version data entries

119 entries across 119 versions & 1 rubygems

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