shikashi
shikashi copied to clipboard
Code on examples on allow_read_const and allow_write_const rdoc are not working
the example
s = Sandbox.new
priv = Privileges.new
priv.allow_method :print
priv.allow_const_read "Object::A"
A = 8
s.run(priv, '
print "assigned Object::A:", A,"\n"
')
Is not working since allow_const_read should use "A" (Object namespace is implicit)
http://tario.github.com/shikashi/doc/classes/Shikashi/Privileges.html#M000021