Class: Blueprinter::Deprecation Private
- Inherits:
-
Object
- Object
- Blueprinter::Deprecation
- Defined in:
- lib/blueprinter/deprecation.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- VALID_BEHAVIORS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%i[silence stderror raise].freeze
- MESSAGE_PREFIX =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'[DEPRECATION::WARNING] Blueprinter:'
Class Method Summary collapse
- .report(message) ⇒ Object private
Class Method Details
.report(message) ⇒ Object
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.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/blueprinter/deprecation.rb', line 10 def report() full_msg = () case behavior when :silence # Silence deprecation (noop) when :stderror warn full_msg when :raise raise BlueprinterError, full_msg end end |