<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Temporarily disabling warnings in Ruby</title>
	<atom:link href="http://devblog.avdi.org/2011/08/25/temporarily-disabling-warnings-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.avdi.org/2011/08/25/temporarily-disabling-warnings-in-ruby/</link>
	<description>&#34;The three virtues of a programmer: laziness, impatience, and hubris&#34; -- Larry Wall</description>
	<lastBuildDate>Wed, 22 May 2013 22:25:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: David Cuadrado</title>
		<link>http://devblog.avdi.org/2011/08/25/temporarily-disabling-warnings-in-ruby/#comment-2181</link>
		<dc:creator>David Cuadrado</dc:creator>
		<pubDate>Wed, 18 Jul 2012 16:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://avdi.org/devblog/?p=1630#comment-2181</guid>
		<description><![CDATA[$-v = true is simpler.]]></description>
		<content:encoded><![CDATA[<p>$-v = true is simpler.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avdi Grimm</title>
		<link>http://devblog.avdi.org/2011/08/25/temporarily-disabling-warnings-in-ruby/#comment-1491</link>
		<dc:creator>Avdi Grimm</dc:creator>
		<pubDate>Mon, 29 Aug 2011 03:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://avdi.org/devblog/?p=1630#comment-1491</guid>
		<description><![CDATA[+1]]></description>
		<content:encoded><![CDATA[<p>+1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicholas a. evans</title>
		<link>http://devblog.avdi.org/2011/08/25/temporarily-disabling-warnings-in-ruby/#comment-1490</link>
		<dc:creator>nicholas a. evans</dc:creator>
		<pubDate>Fri, 26 Aug 2011 11:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://avdi.org/devblog/?p=1630#comment-1490</guid>
		<description><![CDATA[Ruby&#039;s $VERBOSE would be *so* much more useful if it could be enabled or disabled on a per-file basis.]]></description>
		<content:encoded><![CDATA[<p>Ruby&#8217;s $VERBOSE would be *so* much more useful if it could be enabled or disabled on a per-file basis.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raggi</title>
		<link>http://devblog.avdi.org/2011/08/25/temporarily-disabling-warnings-in-ruby/#comment-1489</link>
		<dc:creator>raggi</dc:creator>
		<pubDate>Thu, 25 Aug 2011 16:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://avdi.org/devblog/?p=1630#comment-1489</guid>
		<description><![CDATA[$VERBOSE = false and $VERBOSE = nil mean different things.

Only $VERBOSE = nil will squash interpreter warnings. $VERBOSE = false will squash Kernel.warn]]></description>
		<content:encoded><![CDATA[<p>$VERBOSE = false and $VERBOSE = nil mean different things.</p>
<p>Only $VERBOSE = nil will squash interpreter warnings. $VERBOSE = false will squash Kernel.warn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Anderson</title>
		<link>http://devblog.avdi.org/2011/08/25/temporarily-disabling-warnings-in-ruby/#comment-1488</link>
		<dc:creator>Eric Anderson</dc:creator>
		<pubDate>Thu, 25 Aug 2011 16:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://avdi.org/devblog/?p=1630#comment-1488</guid>
		<description><![CDATA[There is also $VERBOSE = false if you don&#039;t want to redirect stderr (maybe the library uses stderr for something useful).

Although testing your messy.rb I found that $VERBOSE = false still complained about the constant redefinition. So your method is more complete. But if you need stderr to work then $VERBOSE = false is nice (of course you can turn on warnings with $VERBOSE = true).

Rails uses this method in it&#039;s implementation of &quot;silence_warnings&quot;.]]></description>
		<content:encoded><![CDATA[<p>There is also $VERBOSE = false if you don&#8217;t want to redirect stderr (maybe the library uses stderr for something useful).</p>
<p>Although testing your messy.rb I found that $VERBOSE = false still complained about the constant redefinition. So your method is more complete. But if you need stderr to work then $VERBOSE = false is nice (of course you can turn on warnings with $VERBOSE = true).</p>
<p>Rails uses this method in it&#8217;s implementation of &#8220;silence_warnings&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JEG2</title>
		<link>http://devblog.avdi.org/2011/08/25/temporarily-disabling-warnings-in-ruby/#comment-1487</link>
		<dc:creator>JEG2</dc:creator>
		<pubDate>Thu, 25 Aug 2011 16:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://avdi.org/devblog/?p=1630#comment-1487</guid>
		<description><![CDATA[Ruby has a variable for controlling the warnings level, called $VERBOSE.  We can just use this by saving it&#039;s value at the beginning of the method (old_verbose, $VERBOSE = $VERBOSE, nil) and restoring it in the ensure clause ($VERBOSE = old_verbose).]]></description>
		<content:encoded><![CDATA[<p>Ruby has a variable for controlling the warnings level, called $VERBOSE.  We can just use this by saving it&#8217;s value at the beginning of the method (old_verbose, $VERBOSE = $VERBOSE, nil) and restoring it in the ensure clause ($VERBOSE = old_verbose).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Patterson</title>
		<link>http://devblog.avdi.org/2011/08/25/temporarily-disabling-warnings-in-ruby/#comment-1486</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Thu, 25 Aug 2011 16:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://avdi.org/devblog/?p=1630#comment-1486</guid>
		<description><![CDATA[You are a terrible, terrible person.  ;-)]]></description>
		<content:encoded><![CDATA[<p>You are a terrible, terrible person.  ;-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
