some strangeness in using the IO class.
I have IOtest.rb with one line:
But when I load it in irb:
irb(main):001:0> load 'IOtest.rb'
NameError: uninitialized constant Object::I0
from IOtest.rb:1:in `<top (required)>'
from (irb):1:in `load'
Now, when I call IO.read directly:
it works! (prints the file contents to the command line)
I tried putting the IOtest.rb file in the Ruby bin folder and running it
from there, but still get the error.
Any ideas as to what I'm doing wrong will be appreciated.
Posted via http://www.ruby-forum.com/.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.