Exemplo de ruby att_writer
class Person
attr_reader :name, :age, :sex, :email
attr_writer :name, :age, :sex, :email
def initialize(name)
@name = name
end
end
Tense Tarantula