Sha256: a7652f3e84c1928900d860bc60d5edc883b659a1417ff69eb1f04583e4a1f6c4

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

require 'sandbox'
require 'pp'

module Interface
  def self.mputs(*s)
    puts(*s)
  end
end

box=Sandbox.safe
pp box
box.ref Interface
box.eval("def self.a;\nInterface::mputs 123\nend\n self.a")
box.eval('self.a')

normal=Sandbox.new
normal.eval("a=12")
pp normal.eval("a")

s=Sandbox.safe
s.eval("a=12")
pp s.eval("a")



s=Sandbox.safe
s.ref Interface
s.eval("$a=12")
pp s.eval("$a")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appswarm-0.0.1 packages/msandbox/test2.rb