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-3.3.4 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.3 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.3.beta.4 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.3.beta.3 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.3.beta.2 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.3.beta.1 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.2 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.2.beta.7 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.2.beta.6 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.2.beta.5 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.2.beta.4 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.2.beta.3 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.2.beta.2 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.2.beta.1 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.1 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.0 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.0.beta.3 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.0.beta.2 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.3.0.beta.1 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java
rhodes-3.2.3 platform/shared/xruby/src/com/xruby/runtime/lang/RubyIncludeClass.java