Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.
Ruby Inside - A Ruby Blog

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:
    September 2, 2006 at 11:25 pm

    Just an experiment? It works great!

  2. Peter Cooper says:
    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.. :)

Other Posts to Enjoy

Twitter Mentions

AltStyle によって変換されたページ (->オリジナル) /