Module: Timezone::Deprecate
Relationships & Source Files | |
Defined in: | lib/timezone/deprecate.rb |
Overview
This class provides a way to set a custom hook for deprecations.
Class Attribute Summary
-
.callback=(value)
rw
Set the custom deprecation callback.
- .callback rw private
Class Method Summary
- .call(klass, method, message) private
Class Attribute Details
.callback (rw, private)
[ GitHub ]# File 'lib/timezone/deprecate.rb', line 24
def callback @callback || ->(_, _, ) { warn( ) } end
.callback=(value) (rw)
Set the custom deprecation callback. By default this issues a deprecation warning.
# File 'lib/timezone/deprecate.rb', line 21
attr_writer :callback