Sha256: 00c9c61c4e4d9ece70316ab8017593efed5fffecf904702a0978e9d04ae913ff

Contents?: true

Size: 676 Bytes

Versions: 5

Compression:

Stored size: 676 Bytes

Contents

require 'yaml'
require 'cucumber/encoding'
require 'cucumber/platform'
require 'cucumber/runtime'
require 'cucumber/cli/main'
require 'cucumber/step_definitions'
require 'cucumber/term/ansicolor'

module Cucumber
  class << self
    attr_accessor :wants_to_quit

    def logger
      return @log if @log
      @log = Logger.new(STDOUT)
      @log.level = Logger::INFO
      @log
    end

    def logger=(logger)
      @log = logger
    end

    def deprecate(class_name, method, message)
      return self # deprecation warnings will come in v2.1
      called_by = caller[1]
      warn("Deprecated: #{class_name}##{method} #{message}. Caller: #{called_by}")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber-2.1.0 lib/cucumber.rb
cucumber-2.0.2 lib/cucumber.rb
cucumber-2.0.1 lib/cucumber.rb
cucumber-2.0.0 lib/cucumber.rb
cucumber-2.0.0.rc.5 lib/cucumber.rb