From: Robert Klemme Date: 2013-01-12T01:19:41+09:00 Subject: Re: $SAFE variable in Ruby. On Fri, Jan 11, 2013 at 4:31 PM, Arup Rakshit wrote: > The variable $SAFE determines Ruby's level of paranoia. Now it has 5 > different values to protest against "Security Vulnerabilities". Now Can > any present some real time scenarios by which it can be easily Do you mean "real world" scenarios? > understandable how the $SAFE defined values performing for which they > are set or when should we set what value out of 5? A bit dated but probably still mostly correct http://www.ruby-doc.org/docs/ProgrammingRuby/html/taint.html > Now also in what situation we should think of lowering the SAFE level > values or increasing the same? You cannot lower it - for security reasons. Typically you will create a separate thread increase $SAFE there and do the potentially harmful operations that you want to guard. Kind regards rpbert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/