Why doesn't my code work?
when i run it, i get this error
count': undefined method+' for nil:NilClass (NoMethodError)
from -e:1:in `'
I haven't been doing ruby for quite a while but i thought that everything was correct. Doesn't a method just run a block of code?
def count counter += 1 end counter = 0 count counter += 1 puts counter