shikashi icon indicating copy to clipboard operation
shikashi copied to clipboard

Code on examples on allow_read_const and allow_write_const rdoc are not working

Open tario opened this issue 12 years ago • 0 comments

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

tario avatar Apr 11 '12 13:04 tario