PageRenderTime 7ms CodeModel.GetById 3ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/test/ppane/test_helper/collector.rb

http://github.com/tgunr/passengerpane
Ruby | 15 lines | 12 code | 3 blank | 0 comment | 0 complexity | 03a3284fc46d6bf0d59b8da06554ca82 MD5 | raw file
 1class Collector
 2  attr_reader :written
 3  
 4  def initialize
 5    @written = []
 6  end
 7  
 8  def write(string)
 9    @written << string
10  end
11  
12  def puts(string)
13    @written << "#{string}\n"
14  end
15end