Sha256: a3bf82d166c8c765baa4916975274477f40d62d1cc8dce2005194b99e6af7cdc

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

require 'cucumber/formatter/io'
require 'cucumber/formatter/message_builder'

module Cucumber
  module Formatter
    # The formatter used for <tt>--format message</tt>
    class Message < MessageBuilder
      include Io

      def initialize(config)
        @io = ensure_io(config.out_stream, config.error_stream)
        super(config)
      end

      def output_envelope(envelope)
        envelope.write_ndjson_to(@io)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cucumber-6.1.0 lib/cucumber/formatter/message.rb
cucumber-6.0.0 lib/cucumber/formatter/message.rb
cucumber-5.3.0 lib/cucumber/formatter/message.rb
cucumber-5.2.0 lib/cucumber/formatter/message.rb