module Dry::Core::Deprecations
def announce(name, msg, tag: nil, uplevel: nil)
-
msg
(String
) -- additional message usually containing upgrade instructions -
name
(Object
) -- what is deprecated
def announce(name, msg, tag: nil, uplevel: nil) # Bump the uplevel (if provided) by one to account for the uplevel calculation # taking place one frame deeper in `.warn` uplevel += 1 if uplevel warn(deprecation_message(name, msg), tag: tag, uplevel: uplevel) end