Class: StringWriter
- Defined in:
- lib/gitlab-burndown/writer/string.rb
Instance Method Summary collapse
-
#initialize ⇒ StringWriter
constructor
A new instance of StringWriter.
- #read ⇒ Object
- #write(content) ⇒ Object
Constructor Details
#initialize ⇒ StringWriter
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
#read ⇒ Object
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 |