Sha256: 0d03227051ddbbd4da8e8ff6212cd2b2863332bfc826bfe98243b49bcc3d082f
Contents?: true
Size: 450 Bytes
Versions: 8
Compression:
Stored size: 450 Bytes
Contents
package sandbox; import org.jruby.Profile; import org.jruby.anno.JRubyMethod; import org.jruby.runtime.builtin.IRubyObject; public class SandboxModule { @JRubyMethod(name="current", meta=true) public static IRubyObject s_current(IRubyObject recv) { Profile prof = recv.getRuntime().getProfile(); if (prof instanceof SandboxProfile) { return ((SandboxProfile) prof).getSandbox(); } return recv.getRuntime().getNil(); } }
Version data entries
8 entries across 8 versions & 1 rubygems