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