Module: Kredis::DefaultValues
- Extended by:
- ActiveSupport::Concern
- Included in:
- Types::Counter, Types::Enum, Types::Flag, Types::Hash, Types::List, Types::OrderedSet, Types::Scalar, Types::Set
- Defined in:
- lib/kredis/default_values.rb
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/kredis/default_values.rb', line 25 def initialize(...) super if default watch do set_default unless exists? unwatch end end end |