Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: where to place class files?
Axel Etzold
6/21/2007 9:09:00 AM
Dear Nathan,
in what directory did you save the new script ?
Assuming that it is saved as /home/nathan/new_script.rb,
if you write
require "mynewclass/mynewclass"
into it, the error message you get is due to the fact that
you don't have a /home/nathan/mynewclass subdirectory
with a mynewclass.rb file in it.
So you could give the full pathname, or save the mynewclass.rb
script in the same directory as new_script.rb .
Alternatively, you could set additional environment variables
for ruby:
http://www.rubycentral.com/book/ruby...
It sounds to me that you get this error because you expect
Ruby to behave like Java ... right?
If so, could you help me on a Ruby/Java problem for which
I got no response so far ?
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-t...
Thank you very much!
Best regards,
Axel
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung:
http://www.gmx.net/de/g...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: where to place class files?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password