DEV Community

Discussion on: Understanding attr methods in Ruby!

Collapse
 
kateh profile image
Kate (she/her)

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!