/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
- class Collector
- attr_reader :written
-
- def initialize
- @written = []
- end
-
- def write(string)
- @written << string
- end
-
- def puts(string)
- @written << "#{string}\n"
- end
- end