Module: Cucumber::Deprecate::ForUsers

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/deprecate.rb

Class Method Summary collapse

Class Method Details

.call(message, method, remove_after_version) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/deprecate.rb', line 34

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