Class: LetItCrash::Reporters::Stream
- Inherits:
-
Object
- Object
- LetItCrash::Reporters::Stream
- Defined in:
- lib/letitcrash/reporters/stream.rb
Instance Method Summary collapse
-
#initialize(output:) ⇒ Stream
constructor
A new instance of Stream.
- #report(input) ⇒ Object
Constructor Details
#initialize(output:) ⇒ Stream
Returns a new instance of Stream.
6 7 8 |
# File 'lib/letitcrash/reporters/stream.rb', line 6 def initialize(output:) @output = output end |
Instance Method Details
#report(input) ⇒ Object
10 11 12 |
# File 'lib/letitcrash/reporters/stream.rb', line 10 def report(input) output.write(input.to_json) end |