Sha256: 87d27aea51bb32da84f956b1bd601b38f4243375bf56dd6eca813ee9564f5444
Contents?: true
Size: 796 Bytes
Versions: 10
Compression:
Stored size: 796 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 if Cucumber::RUBY_1_9 # Backported from Ruby 2.0 to 1.9 def Hash(other) return {} if other.nil? || other == [] raise TypeError, "can't convert #{other.class} into Hash" unless other.respond_to?(:to_hash) other.to_hash end else def Hash(other) Kernel::Hash(other) end end end end
Version data entries
10 entries across 10 versions & 2 rubygems