Class: Tempest::Output::LineWriter
- Inherits:
-
Object
- Object
- Tempest::Output::LineWriter
- Defined in:
- lib/tempest/output/line_writer.rb
Instance Method Summary collapse
-
#initialize(io) ⇒ LineWriter
constructor
A new instance of LineWriter.
- #write_error(message, code: nil, details: nil) ⇒ Object
- #write_posts(posts) ⇒ Object
Constructor Details
#initialize(io) ⇒ LineWriter
Returns a new instance of LineWriter.
7 8 9 |
# File 'lib/tempest/output/line_writer.rb', line 7 def initialize(io) @io = io end |
Instance Method Details
#write_error(message, code: nil, details: nil) ⇒ Object
15 16 17 |
# File 'lib/tempest/output/line_writer.rb', line 15 def write_error(, code: nil, details: nil) @io.puts "error: #{}" end |