Module: Cucumber::Deprecate::ForUsers

Defined in:
lib/cucumber/deprecate.rb

Class Method Summary collapse

Class Method Details

.call(message, method, remove_after_version) ⇒ Object


33
34
35
36
37
38
39
# File 'lib/cucumber/deprecate.rb', line 33

def self.call(message, method, remove_after_version)
  STDERR.puts AnsiString.failure_message(
    "\nWARNING: ##{method} is deprecated" \
    " and will be removed after version #{remove_after_version}. #{message}.\n" \
    "(Called from #{caller(3..3).first})"
  )
end