Hi,
I’m new to Ruby and am learning with “Beginning Ruby from Novice to
Professional,” and I’ve hit a roadblock within the first few pages of
the book.
For some reason, even though I believe I am following the instructions
correctly, I keep having the same problem. I am using the author’s
first example:
class Person
attr_accessor :name, :age, :gender
end
=>nil
person_instance=person.new
Every time I attempt to create an instance of the class I receive the
“name error: undefined local variable…” error message. After
uninstalling and reinstalling various versions of Ruby I am having the
same problem. What’s going on here?
Thanks,
Jon