📅  最后修改于: 2022-03-11 15:04:48.989000             🧑  作者: Mango
代码示例2
class Person
attr_reader :name, :age, :sex, :email
attr_writer :name, :age, :sex, :email
def initialize(name)
@name = name
end
end