class Foo
attr_reader :scores
def initialize
@scores = []
end
def add(score)
@scores << score
end
end
a = Foo.new
a.add 50
a.add 60
puts a.scores
Y2xhc3MgRm9vCglhdHRyX3JlYWRlciA6c2NvcmVzCgkKCWRlZiBpbml0aWFsaXplCgkJQHNjb3JlcyA9IFtdCgllbmQKCglkZWYgYWRkKHNjb3JlKQoJCUBzY29yZXMgPDwgc2NvcmUKCWVuZAplbmQKCmEgPSBGb28ubmV3CmEuYWRkIDUwCmEuYWRkIDYwCnB1dHMgYS5zY29yZXM=