module Xlsxrb::Deprecation
@api private
Public Class Methods
(String message, ?uplevel: Integer?) → void
Source
# File lib/xlsxrb.rb, line 80 def self.warn(message, uplevel: 1) uplevel ||= caller_locations(1)&.index { |location| !location.absolute_path.to_s.start_with?(LIB_DIR) } || 0 Kernel.warn("[Xlsxrb DEPRECATION] #{message}", uplevel: uplevel + 1) end
Warns that a feature is deprecated, at the location uplevel frames above the caller, or, with +uplevel: nil+, at the first caller outside this library, for methods that are reached both directly and through another xlsxrb method.