From: Jason Voegele Date: 2002-04-19T04:32:03+09:00 Subject: Re: Object#send with $SAFE >= 1 > Strange. I tried your example in irb and got following error. Perhaps > my irb is broken? A bug in Ruby? > > ruby -v > ruby 1.6.6 (2001-12-26) [i586-mswin32] > > irb(main):001:0> $SAFE = 1 > 1 > irb(main):002:0> class Foo; def foo; puts "foo!"; end; end > SecurityError: Insecure operation - eval [snip] Further, I get the same error trying this on: ruby 1.6.7 (2002-03-01) [i686-linux]