2 ms·
All "properties" are functions too (methods, to be exact). There is no difference. `attr_accessor` is a macro which defines two methods.
by hvis 4y ago
All "properties" are functions too (methods, to be exact). There is no difference.
`attr_accessor` is a macro which defines two methods.