Ruby Tutorials: attr_accessor to get both reader and writer methods for attributes

Опубликовано: 14 Февраль 2026
на канале: GangesLearning
1,938
8

In this video we will have a look at attr_accessors. It does what attar_reader and attar_writer do - create a reader method for an attribute like attar_reader and create a writer method for an attribute like attar_writer. In this video we will have a look at its use via example