end
somewhere. (It found the "$end" of the file, but expected end
.)
draw': undefined method
score' for nil:NilClass (NoMethodError)@CptnRuby
to anything, so it is nil
by default. And, you never even define a score
method anywhere, so it says that you never defined it for nil
. Perhaps you meant to type @score
?@
. This means it's an instance variable, like your score
. But using CptnRuby.score
won't work until you define that method. It isn't defined right now. Fixing this right now for you; I'll attach it when done. Should take longer than a minute total. :)parseargs': undefined method
exist?' for nil:NilClass (NoMethodError)init'
from C:/Ruby191/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:1129:in
<top (required)>'load'
from C:/Ruby191/bin/ocra:19:in
<main>'
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill