We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I was wondering if it was possible to use refinements within the sandbox.
For example, given this module:
module FooRefinement refine String do def to_s return "bar" if self == "foo" super end end end
Would it be possible to somehow inject that into the sandboxed code so that when I run this:
s = Sandbox.new priv = Privileges.new priv.instances_of(String).allow :to_s priv.allow_method :puts s.run(priv, 'puts "foo".to_s')
It outputs "bar" instead of "foo"?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I was wondering if it was possible to use refinements within the sandbox.
For example, given this module:
Would it be possible to somehow inject that into the sandboxed code so that when I run this:
It outputs "bar" instead of "foo"?
The text was updated successfully, but these errors were encountered: