Class: LetItCrash::Reporters::Stream

Inherits:
Object
  • Object
show all
Defined in:
lib/letitcrash/reporters/stream.rb

Instance Method Summary collapse

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