Class: Hanami::Utils::Deprecation
- Inherits:
-
Object
- Object
- Hanami::Utils::Deprecation
- Defined in:
- lib/hanami/utils/deprecation.rb
Overview
Prints a deprecation warning when initialized
Instance Method Summary collapse
-
#initialize(message) ⇒ Deprecation
constructor
Initialize a deprecation message and prints it to standard error.
Constructor Details
#initialize(message) ⇒ Deprecation
Initialize a deprecation message and prints it to standard error.
62 63 64 |
# File 'lib/hanami/utils/deprecation.rb', line 62 def initialize() ::Kernel.warn("#{} - called from: #{caller[caller_index]}.") end |