<?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: My .irbrc for console/irb</title>
	<atom:link href="http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/feed/" rel="self" type="application/rss+xml" />
	<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/</link>
	<description>Ruby makes Rails, Javascript makes Ajax, Dr Nic makes Magic</description>
	<lastBuildDate>Mon, 30 Apr 2012 17:04:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Steven Bristol</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/comment-page-1/#comment-193503</link>
		<dc:creator>Steven Bristol</dc:creator>
		<pubDate>Sun, 10 Jan 2010 13:00:22 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-193503</guid>
		<description>Hi Nic,

Just came across this again while searching for something else. Still great tips. How about an update? Any cool new tricks in your .irbrc?</description>
		<content:encoded><![CDATA[<p>Hi Nic,</p>
<p>Just came across this again while searching for something else. Still great tips. How about an update? Any cool new tricks in your .irbrc?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/comment-page-1/#comment-192723</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Sat, 19 Dec 2009 17:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-192723</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by delicious50: Dr Nic &#039;s My .irbrc for console/irb http://bit.ly/E0pG2 ruby irb...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by delicious50: Dr Nic &#8216;s My .irbrc for console/irb <a href="http://bit.ly/E0pG2" rel="nofollow">http://bit.ly/E0pG2</a> ruby irb&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: greenideas: A Matt Henry Joint</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/comment-page-1/#comment-165732</link>
		<dc:creator>greenideas: A Matt Henry Joint</dc:creator>
		<pubDate>Sat, 04 Apr 2009 22:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-165732</guid>
		<description>[...] Dr. Nic also has some great irb tips [...]</description>
		<content:encoded><![CDATA[<p>[...] Dr. Nic also has some great irb tips [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted Naleid &#187; Syntactic Sugar in Groovy and Ruby</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/comment-page-1/#comment-92348</link>
		<dc:creator>Ted Naleid &#187; Syntactic Sugar in Groovy and Ruby</dc:creator>
		<pubDate>Wed, 28 May 2008 04:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-92348</guid>
		<description>[...] the .irbrc file auto load ruby code when going into irb (the interactive ruby shell. Having a .groovyrc file that gets loaded when [...]</description>
		<content:encoded><![CDATA[<p>[...] the .irbrc file auto load ruby code when going into irb (the interactive ruby shell. Having a .groovyrc file that gets loaded when [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/comment-page-1/#comment-79547</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sun, 06 Apr 2008 06:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-79547</guid>
		<description>@Piggybox [&lt;a href=&#039;http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-451&#039; rel=&quot;nofollow&quot;&gt;via&lt;/a&gt;] - 

I&#039;m not sure that&#039;s true. Python has this thing called ipython which seems to work within windows cmd. Dito for cygwin. If someone knows how to make wirble work in windows, that&#039;d be great.</description>
		<content:encoded><![CDATA[<p>@Piggybox [<a href='http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-451' rel="nofollow">via</a>] &#8211; </p>
<p>I&#8217;m not sure that&#8217;s true. Python has this thing called ipython which seems to work within windows cmd. Dito for cygwin. If someone knows how to make wirble work in windows, that&#8217;d be great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim OLeary</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/comment-page-1/#comment-49167</link>
		<dc:creator>Jim OLeary</dc:creator>
		<pubDate>Thu, 18 Oct 2007 10:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-49167</guid>
		<description>(I find) another useful method to add to your irbrc is : 

def self.load_rails(from=&quot;./&quot;)
  require File.expand_path(File.join(from,&quot;config/boot&quot;))
  require File.join(RAILS_ROOT, &#039;config&#039;, &#039;environment&#039;)
end

it loads a rails project into irb, useful if you really should have run ./script/console ;-)</description>
		<content:encoded><![CDATA[<p>(I find) another useful method to add to your irbrc is : </p>
<p>def self.load_rails(from=&#8221;./&#8221;)<br />
  require File.expand_path(File.join(from,&#8221;config/boot&#8221;))<br />
  require File.join(RAILS_ROOT, &#8216;config&#8217;, &#8216;environment&#8217;)<br />
end</p>
<p>it loads a rails project into irb, useful if you really should have run ./script/console <img src='http://drnicwilliams.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/comment-page-1/#comment-39303</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Thu, 26 Jul 2007 08:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39303</guid>
		<description>@stephaneliu [&lt;a href=&quot;http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39300&quot; rel=&quot;nofollow&quot; rel=&quot;nofollow&quot;&gt;via&lt;/a&gt;] - it is funny seeing &quot;@stephaneliu&quot; when you are replying to yourself. I might add &quot;@me&quot; and it could point to the previous comment (which we&#039;d assume was your own).</description>
		<content:encoded><![CDATA[<p>@stephaneliu [<a href="http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39300" rel="nofollow" rel="nofollow">via</a>] &#8211; it is funny seeing &#8220;@stephaneliu&#8221; when you are replying to yourself. I might add &#8220;@me&#8221; and it could point to the previous comment (which we&#8217;d assume was your own).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephaneliu</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/comment-page-1/#comment-39300</link>
		<dc:creator>stephaneliu</dc:creator>
		<pubDate>Thu, 26 Jul 2007 08:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39300</guid>
		<description>@stephaneliu [&lt;a href=&#039;http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39299&#039; rel=&quot;nofollow&quot;&gt;via&lt;/a&gt;] - 

parser didn&#039;t like my syntax for second location of irbrc which is in the locomotive home/bin directory.</description>
		<content:encoded><![CDATA[<p>@stephaneliu [<a href='http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39299' rel="nofollow">via</a>] &#8211; </p>
<p>parser didn&#8217;t like my syntax for second location of irbrc which is in the locomotive home/bin directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephaneliu</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/comment-page-1/#comment-39299</link>
		<dc:creator>stephaneliu</dc:creator>
		<pubDate>Thu, 26 Jul 2007 08:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39299</guid>
		<description>I can modify the irbrc file on my windows machine but not on my mac that runs locomotive. I modified irbrc file in both ~/.irbrc and /...bin/.irbrc. Should the irbrc file be be in another location?</description>
		<content:encoded><![CDATA[<p>I can modify the irbrc file on my windows machine but not on my mac that runs locomotive. I modified irbrc file in both ~/.irbrc and /&#8230;bin/.irbrc. Should the irbrc file be be in another location?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/comment-page-1/#comment-38083</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Wed, 18 Jul 2007 07:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-38083</guid>
		<description>BTW, if you want to add &lt;code&gt;active_support&lt;/code&gt; to .irbrc, and you use Edge Rails, you must not preload the gem if its a rails console.

So instead of 
&lt;pre&gt;require &#039;active_support&#039;&lt;/pre&gt;

Use:
&lt;pre&gt;
unless IRB.conf[:LOAD_MODULES].join =~ /config\\/environment/
  require &#039;active_support&#039;
end
&lt;/pre&gt;

Until I did this I was getting errors like:

&lt;pre&gt;/vendor/rails/railties/lib/dispatcher.rb:94:NoMethodError: undefined method `attr_accessor_with_default&#039; for #&lt;Class:Dispatcher&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>BTW, if you want to add <code>active_support</code> to .irbrc, and you use Edge Rails, you must not preload the gem if its a rails console.</p>
<p>So instead of </p>
<pre>require 'active_support'</pre>
<p>Use:</p>
<pre>
unless IRB.conf[:LOAD_MODULES].join =~ /config\\/environment/
  require 'active_support'
end
</pre>
<p>Until I did this I was getting errors like:</p>
<pre>/vendor/rails/railties/lib/dispatcher.rb:94:NoMethodError: undefined method `attr_accessor_with_default' for #&lt;Class:Dispatcher></pre>
]]></content:encoded>
	</item>
</channel>
</rss>

