Ah, nice catch! We indeed do NOT need attr_accessor :age in the last example. I must have left it over as I copied over the code from a few examples ago.
Thank you for pointing it out, updated!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ah, nice catch! We indeed do NOT need
attr_accessor :age
in the last example. I must have left it over as I copied over the code from a few examples ago.Thank you for pointing it out, updated!