Class: Cucumber::Formatter::Message
- Inherits:
-
MessageBuilder
- Object
- MessageBuilder
- Cucumber::Formatter::Message
- Includes:
- Io
- Defined in:
- lib/cucumber/formatter/message.rb
Overview
The formatter used for --format message
Instance Method Summary collapse
-
#initialize(config) ⇒ Message
constructor
A new instance of Message.
- #output_envelope(envelope) ⇒ Object
Methods included from Io
ensure_dir, ensure_file, ensure_io, included, io?, url?
Methods inherited from MessageBuilder
Constructor Details
#initialize(config) ⇒ Message
Returns a new instance of Message.
12 13 14 15 |
# File 'lib/cucumber/formatter/message.rb', line 12 def initialize(config) @io = ensure_io(config.out_stream, config.error_stream) super(config) end |
Instance Method Details
#output_envelope(envelope) ⇒ Object
17 18 19 20 |
# File 'lib/cucumber/formatter/message.rb', line 17 def output_envelope(envelope) @io.write(envelope.to_json) @io.write("\n") end |