Sha256: fd374fc55a3deca600c20761349f2140d8f0b5d0088a9f95ad7901a151e83b55

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 Bytes

Contents

# Patch configuration to always use
module Cucumber
  module Cli
    class Configuration
      alias_method :orig_formatter_class, :formatter_class
      def formatter_class(format)
        unless @__gurke_original_formatter_registered
          ::Gurke::Formatter.use orig_formatter_class(format)
          @__gurke_original_formatter_registered = true
        end

        ::Gurke::Formatter
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gurke-1.0.1 lib/gurke/patch/cucumber_cli_configuration.rb
gurke-1.0.0 lib/gurke/patch/cucumber_cli_configuration.rb