1 2 3 4 5 6 7 8 9 10
class Document # Most of the class omitted... def initialize( *names ) @author = "#{names.join(' ')}" end def add_authors( *names ) @author += "#{names.join(' ')}" end end