How to Reduce the $SAFE Level (For Ruby Geeks Only)
Eric Hodel has worked out a scary way to reduce Ruby's safe-level on the fly using a little inline C. Please don't use this in production code, it's just an experiment! That said, this could be a useful trick for things like Classroom and sandboxing environments.
September 2, 2006 at 11:25 pm
Just an experiment? It works great!
September 3, 2006 at 1:29 pm
Experiments can work ;-) I just don't think fiddling directly with Ruby's core is something that you'd want in non-experimental environments! Just my opinion, as always.. :)