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.

Comments

  1. Eric Hodel ·

    Just an experiment? It works great!

  2. Peter Cooper ·

    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.. :)