On 17 Aug 2010, at 16:36, Brian Candler wrote:

> Iain Barnett wrote:
>> Do all gems become available to irb so they can be loaded using =
relative=20
>> paths even when the library itself has not been required?
>=20
> In ruby 1.9, rubygems is activated automatically - you don't need=20
> require 'rubygems'
>=20
> There isn't really any such thing as "requiring the library itself". A=20=

> library is just a collection of .rb files. So if=20
> .../gems/foo-1.2.3/lib/bar/baz.rb exists, then require "bar/baz" will=20=

> find it, unless it finds another one earlier in the path.
>=20
> So I think the mystery is solved :-)
>=20
> For development purposes, you could do
>=20
>    irb -I.
>=20
> to put the current directory at the front of the search path - or the=20=

> equivalent in .irbrc
> --=20
> Posted via http://www.ruby-forum.com/.
>=20


I see, that makes sense. I assumed that since I was giving a path to =
load that it wouldn't search through the $: paths.

Thanks for your help.

Regards,
Iain=