Class: StringWriter

Inherits:
Writer show all
Defined in:
lib/gitlab-burndown/writer/string.rb

Instance Method Summary collapse

Constructor Details

#initializeStringWriter

Returns a new instance of StringWriter.



4
5
6
7
# File 'lib/gitlab-burndown/writer/string.rb', line 4

def initialize
  super()
  @string_result = ''
end

Instance Method Details

#readObject



13
14
15
# File 'lib/gitlab-burndown/writer/string.rb', line 13

def read
  @string_result
end

#write(content) ⇒ Object



9
10
11
# File 'lib/gitlab-burndown/writer/string.rb', line 9

def write(content)
  @string_result += content
end