Class: Redis::Prescription Deprecated
- Inherits:
-
RedisPrescription
- Object
- RedisPrescription
- Redis::Prescription
- Defined in:
- lib/redis/prescription.rb
Overview
Deprecated.
Use ::RedisPrescription
Constant Summary
Constants inherited from RedisPrescription
Class Attribute Summary collapse
-
.silence_deprecation_warning ⇒ Boolean
Controls if deprecation warnings should be silenced or not.
Attributes inherited from RedisPrescription
Instance Method Summary collapse
-
#initialize ⇒ Prescription
constructor
A new instance of Prescription.
Methods inherited from RedisPrescription
Constructor Details
#initialize ⇒ Prescription
Returns a new instance of Prescription.
18 19 20 21 22 23 24 |
# File 'lib/redis/prescription.rb', line 18 def initialize(*) super return if self.class.silence_deprecation_warning warn "#{self.class} usage was deprecated, please use RedisPrescription instead" end |
Class Attribute Details
.silence_deprecation_warning ⇒ Boolean
Controls if deprecation warnings should be silenced or not. Defaults to ‘false`.
13 14 15 |
# File 'lib/redis/prescription.rb', line 13 def silence_deprecation_warning @silence_deprecation_warning end |