El Martes, 24 de Junio de 2008, Brad Hutchins escribió:
> >> require 'rubygems'
> => false

When you get "false" it means that library was **already** loaded. Example:

~$ irb
irb(main):001:0> require 'time'
=> true
irb(main):002:0> require 'time'
=> false


If the library doesn't exist in the configured path you would get an error:

irb(main):001:0> require 'non_existing_library'
LoadError: no such file to load -- non_existing_library
        from (irb):1:in `require'
        from (irb):1
        from :0


-- 
Iñaki Baz Castillo