module Cucumber

Constants

BINARY
CODEPAGE
LIBDIR
RAILS
RUBY_2_1
RUBY_2_2
RUBY_BINARY
VERSION

Attributes

use_full_backtrace[RW]
wants_to_quit[RW]

Public Class Methods

Hash(other) click to toggle source

Backported from Ruby 2.0 to 1.9

# File lib/cucumber.rb, line 26
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
deprecate(*args) click to toggle source
# File lib/cucumber/deprecate.rb, line 25
def self.deprecate(*args)
  Deprecate::Strategy.call(*args)
end
file_mode(m, encoding="UTF-8") click to toggle source

@private

# File lib/cucumber/platform.rb, line 20
def file_mode(m, encoding="UTF-8")
  "#{m}:#{encoding}"
end
logger() click to toggle source
# File lib/cucumber.rb, line 13
def logger
  return @log if @log
  @log = Logger.new(STDOUT)
  @log.level = Logger::INFO
  @log
end
logger=(logger) click to toggle source
# File lib/cucumber.rb, line 20
def logger=(logger)
  @log = logger
end