Module: Cucumber::Deprecate::ForUsers

Defined in:
lib/cucumber/deprecate.rb

Constant Summary collapse

AnsiEscapes =
Cucumber::Gherkin::Formatter::AnsiEscapes

Class Method Summary collapse

Class Method Details

.call(message, method, remove_after_version) ⇒ Object



11
12
13
# File 'lib/cucumber/deprecate.rb', line 11

def self.call(message, method, remove_after_version)
  STDERR.puts AnsiEscapes.failed + "\nWARNING: ##{method} is deprecated and will be removed after version #{remove_after_version}. #{message}.\n(Called from #{caller[2]})" + AnsiEscapes.reset
end