safe_level

thr.safe_level รข integer
Instance Public methods

Returns the safe level in effect for thr. Setting thread-local safe levels can help when implementing sandboxes which run insecure code.

thr = Thread.new { $SAFE = 3; sleep }
Thread.current.safe_level   #=> 0
thr.safe_level              #=> 3
doc_ruby_on_rails
2015-05-17 14:11:09
Comments
Leave a Comment

Please login to continue.