I am aware that the safe mode in Ruby can only be set higher, not
lower. This makes sense, as unsafe code should not be able to lower
the safe mode. However, is there a way to lower it at all, as I can
think of many times this may be useful. Would it not make a lot more
sense to be able to do something like this?
safe_mode(x) do # x must be greater than the current safe mode
do risky code here
back to original safe mode
Maybe the above is possible and I am just missing how, but I would
think that it would be much more useful to have in a form similar to
this all the time.
- Jake McArthur