Module: CMDx::Deprecators::Warn Private
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Emits a Ruby warning to stderr via ‘Kernel.warn`. Visible during development and testing without polluting structured production logs.
Instance Method Summary collapse
- #call(task) ⇒ void private
Instance Method Details
#call(task) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
15 16 17 |
# File 'lib/cmdx/deprecators/warn.rb', line 15 def call(task) Kernel.warn("[#{task.class}] DEPRECATED: migrate to a replacement or discontinue use") end |