Class: Redis::Prescription Deprecated

Inherits:
RedisPrescription show all
Defined in:
lib/redis/prescription.rb

Overview

Deprecated.

Use ::RedisPrescription

Constant Summary

Constants inherited from RedisPrescription

RedisPrescription::VERSION

Class Attribute Summary collapse

Attributes inherited from RedisPrescription

#digest, #source

Instance Method Summary collapse

Methods inherited from RedisPrescription

#call

Constructor Details

#initializePrescription

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_warningBoolean

Controls if deprecation warnings should be silenced or not. Defaults to ‘false`.

Returns:

  • (Boolean)


13
14
15
# File 'lib/redis/prescription.rb', line 13

def silence_deprecation_warning
  @silence_deprecation_warning
end