Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

How to Reduce the $SAFE Level (For Ruby Geeks Only)

By Peter Cooper / August 31, 2006

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 says:

    Just an experiment? It works great!

  2. Peter Cooper says:

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

Other Posts to Enjoy

Twitter Mentions