[ create a new paste ] login | about

Link: http://codepad.org/SG5QnYrX    [ raw code | fork ]

Ruby, pasted on May 17:
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


Create a new paste based on this one


Comments: