Sha256: d64b340e302397377487e8c1cf67bc045d7fbdde2ff50b29151d1f5dd372ba82

Contents?: true

Size: 881 Bytes

Versions: 135

Compression:

Stored size: 881 Bytes

Contents

/**
 * Copyright 2007 Ye Zheng
 * Distributed under the BSD License
 */

package com.xruby.runtime.lang;

public class RubyIncludeClass extends RubyClass {
    private RubyModule module;

    public RubyIncludeClass(RubyModule module, RubyClass superclass) {
        super(null, superclass, null);
        if (module instanceof RubyIncludeClass) {
            module = ((RubyIncludeClass)module).module;
        }
        this.setRubyClass(RubyRuntime.ClassClass);
        this.module = module;
        this.methods_ = module.methods_;
        this.constants_ = module.constants_;
        this.instance_varibles_ = module.instance_varibles_;
//        this.class_varibles_ = module.class_varibles_;
    }

    public boolean isRealClass() {
        return false;
    }

    public RubyModule getIncludedModule() {
        return this.module;
    }
}

Version data entries

135 entries across 135 versions & 2 rubygems

Version Path
rhodes-7.6.0 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-7.5.1 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-7.4.1 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-7.1.17 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-6.2.0 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-6.0.11 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-5.5.18 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-5.5.17 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-5.5.15 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-5.5.0.22 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-5.5.2 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-5.5.0.7 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-5.5.0.3 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-5.5.0 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
tauplatform-1.0.3 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
tauplatform-1.0.2 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
tauplatform-1.0.1 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.5.1.12 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.5 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.4.2 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java