Sha256: 8d6e524ad602557d8c3e6ffa9316e316eb3ff97a677ba3b5dda99619c5ba5d37

Contents?: true

Size: 741 Bytes

Versions: 135

Compression:

Stored size: 741 Bytes

Contents

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

package com.xruby.runtime.lang;

import com.xruby.runtime.builtin.RubyArray;

public abstract class RubyProgram {

    public RubyValue invoke() {
        RubyRuntime.ObjectClass.setAccessPrivate();//so that top level methods are private methods of Object by default
        return invoke(RubyRuntime.TOP_LEVEL_SELF_VALUE, null, null, RubyRuntime.ObjectClass);
    }

    public RubyValue invoke(RubyValue receiver, RubyArray args, RubyBlock block, RubyModule scope) {
        return run(receiver, args, block, scope);
    }

    protected abstract RubyValue run(RubyValue receiver, RubyArray args, RubyBlock block, RubyModule scope);
}

Version data entries

135 entries across 135 versions & 2 rubygems

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