Sha256: 18cf0a37f18c100e490bd4ece4508b1719ead891cea6e816d3f66ecaa6947c53

Contents?: true

Size: 459 Bytes

Versions: 10

Compression:

Stored size: 459 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)
        super(config)
      end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cucumber-5.1.3 lib/cucumber/formatter/message.rb
cucumber-5.1.2 lib/cucumber/formatter/message.rb
cucumber-5.1.1 lib/cucumber/formatter/message.rb
cucumber-5.1.0 lib/cucumber/formatter/message.rb
cucumber-5.0.0 lib/cucumber/formatter/message.rb
cucumber-4.1.0 lib/cucumber/formatter/message.rb
cucumber-4.0.1 lib/cucumber/formatter/message.rb
cucumber-4.0.0 lib/cucumber/formatter/message.rb
cucumber-4.0.0.rc.6 lib/cucumber/formatter/message.rb
cucumber-4.0.0.rc.5 lib/cucumber/formatter/message.rb