From: Seebs Date: 2009-11-24T19:15:05+09:00 Subject: Re: Warning: instance variable @foo not initialized On 2009-11-24, Stefano Crocco wrote: > If the warnings only annoy you, you should be able to disable them by not > passing the -w option to ruby. If instead you're worried that they can mean > there's something wrong, I think you don't need to. Most of the times, > warnings issued by ruby are harmless. There's two issues. 1. Actually, those warnings happen even without -w. (Unless there's something non-obvious passing the -w to Ruby that I didn't think about.) 2. I actually really DO want -w warnings for my code. Is there a way to do a require that suppresses warnings during parsing of the required code? -s -- Copyright 2009, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!