irb(main):001:0) ruby Helloworld.rb
NameError: uninitialized constant Helloworld
from (irb):1
from C:/Ruby/bin/irb:12:in ‘(main)’
I’ve been playing ping-pong with these two errors and others like them
but can’t seem to get the .rb to jut run.
Any and all advice,help,or direction is appreciated.
the problem is that you try to run your ruby script files from irb. If
you just want to run your scripts, run them from the command line like
you tried in irb - if you just type “ruby” in irb you’ll get the error
that ruby doesn’t know a variable/method “ruby”…
Your two errors are completely unrelated to that, though. The first one
tells you that the parser doesn’t know what to do with the . in the
line, while the second says that there simply is no constant Helloworld.
Regards, Calvin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.