ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: RubyGems Issue
by Skeets other posts by this author
Nov 12 2006 10:00AM messages near this date
Re: RubyGems Issue | Re: RubyGems Issue
>  Probably you're doing nothing wrong. When "require" returns false it
>  doesn't mean it failed, it only means that whatever you're requiring is
>  already loaded. When require fails it raises an exception:
> 
>  ruby$ irb
>  irb(main):001:0> require 'notthere'
>  LoadError: no such file to load -- notthere
>          from (irb):1:in `require'
>          from (irb):1
>  irb(main):002:0>
> 
>  What this means is that you've already got "rubygems" loaded. At a guess
>  I'd say that you have a RUBYOPT environment variable with the value
>  "rrubygems" or something similar.

thank you very much.  that result is not intuitive (especially since
the tutorial for fxruby displayed 'true' when doing this), but now that
you explained how it works, i can move on and start learning some
fxruby.

thanks again.
Thread:
Skeets
Matt Neuburg
Bernard Kenik
Bernard Kenik
Skeets
Patrick Hurley
Skeets
Skeets
Timothy Hunter
Skeets

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved