Ruby attr_accessor, what is that?

The ruby attr_accessor (as the similar attr_reader and attr_writer), are helpers that define read and write methods for instance variables of a class in a clean and quick way.