lib/dry/core/deprecations.rb
# Wraps arguments with a standard message format and prints a warning
#
# @param [Object] name what is deprecated
# @param [String] msg additional message usually containing upgrade instructions
Wraps arguments with a standard message format and prints a warning
Wraps arguments with a standard message format and prints a warning
def announce(name, msg, tag: nil, uplevel: nil)
          uplevel += 1 if uplevel
          warn(deprecation_message(name, msg), tag: tag, uplevel: uplevel)
        end
def announce ( name , msg , tag : nil , uplevel : nil ) uplevel += 1 if uplevel warn ( deprecation_message ( name , msg ) , tag : tag , uplevel : uplevel ) end
Wraps arguments with a standard message format and prints a warning
Wraps arguments with a standard message format and prints a warning
# Bump the uplevel (if provided) by one to account for the uplevel calculation # taking place one frame deeper in `.warn`
name
<not_specific>
msg
<not_specific>
tag
<not_specific>
uplevel
<not_specific>
<not_specific>
msg additional message usually containing upgrade instructions
msg additional message usually containing upgrade instructions