Ben Bleything
3/24/2009 6:12:00 PM
On Tue, Mar 24, 2009 at 10:56 AM, Jeremy Henty <onepoint@starurchin.org> wr=
ote:
> You're right that =A0there's little reason to use =A0this hook in ~/.irbr=
c
> but as I =A0remarked elsewhere in the thread, irb will =A0pick up a .irbr=
c
> from the =A0current directory as well =A0as from the =A0home directory. =
=A0And
> it's very =A0common for =A0me to want =A0to start =A0irb in the =A0same o=
bject's
> context whenever I'm =A0running irb in a particular =A0directory. =A0With=
my
> hack I get that just by creating a *local* .irbrc .
Oh, by default? I've been carrying around code in my ~/.irbrc to load
local .irbrc for years, and didn't know anyone else did that :)
> Sure, =A0that works. =A0 I just =A0like =A0having a =A0way to =A0make tha=
t =A0happen
> automatically.
Yeah, sure. Like I said, I've never really needed it to happen
automatically, but it's definitely a cool hack when you do.
Ben