class Profile
attr_reader :name, :age, :nationality, :province
attr_reader :city, :working_place
def initialize args
args.each do |k,v|
unless v.nil?
instance_variable_set("@#{k}", v)
end
end
end
end
07-17
07-17
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交