O'Reilly logo
  • Michael Wang thinks this is interesting:

creates attribute accessors corresponding to a user’s name and email address. This creates “getter” and “setter” methods

From

Cover of Ruby on Rails Tutorial: Learn Web Development with Rails, Third Edition

Note

ruby #attr_accessor