Sha256: 1a2158b87f4f40ff04a6c99f579e2abbc5b15a900cdaf13165c95fc2a377cc5c

Contents?: true

Size: 609 Bytes

Versions: 16

Compression:

Stored size: 609 Bytes

Contents

package sandbox;

import org.jruby.Profile;
import org.jruby.runtime.builtin.IRubyObject;

public class SandboxProfile implements Profile {
  private IRubyObject sandbox;

  public SandboxProfile(IRubyObject sandbox) {
    this.sandbox = sandbox;
  }

  public IRubyObject getSandbox() {
    return sandbox;
  }

  public boolean allowBuiltin(String name) { return true; }
  public boolean allowClass(String name) { return true; }
  public boolean allowModule(String name) { return true; }
  public boolean allowLoad(String name) { return true; }
  public boolean allowRequire(String name) { return true; }
}

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
xplenty-jruby_sandbox-0.2.9-java ext/java/sandbox/SandboxProfile.java
xplenty-jruby_sandbox-0.2.8-java ext/java/sandbox/SandboxProfile.java
xplenty-jruby_sandbox-0.2.7-java ext/java/sandbox/SandboxProfile.java
xplenty-jruby_sandbox-0.2.6-java ext/java/sandbox/SandboxProfile.java
xplenty-jruby_sandbox-0.2.5-java ext/java/sandbox/SandboxProfile.java
xplenty-jruby_sandbox-0.2.4-java ext/java/sandbox/SandboxProfile.java
jruby_sandbox-0.2.3-java ext/java/sandbox/SandboxProfile.java
jruby-safe-0.2.2-java ext/java/sandbox/SandboxProfile.java
jruby_sandbox-0.2.2-java ext/java/sandbox/SandboxProfile.java
jruby_sandbox-0.2.1-java ext/java/sandbox/SandboxProfile.java
jruby_sandbox-0.2.0-java ext/java/sandbox/SandboxProfile.java
jruby_sandbox-0.1.4-java ext/java/sandbox/SandboxProfile.java
jruby_sandbox-0.1.3-java ext/java/sandbox/SandboxProfile.java
jruby_sandbox-0.1.2-java ext/java/sandbox/SandboxProfile.java
jruby_sandbox-0.1.1-java ext/java/sandbox/SandboxProfile.java
jruby_sandbox-0.1.0-java ext/java/sandbox/SandboxProfile.java