Sha256: 7a4811b7e812863ba473708ad01c49c77eda6c0c44524864163cf38955c0f316
Contents?: true
Size: 695 Bytes
Versions: 6
Compression:
Stored size: 695 Bytes
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class Abstract # Set: Abstract (Lock) # module Lock; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-content/set/abstract/lock.rb"; end def lock was_already_locked = locked? return if was_already_locked Auth.as_bot do lock! yield end ensure unlock! unless was_already_locked end def lock_cache_key "UPDATE-LOCK:#{key}" end def locked? Card.cache.read lock_cache_key end def lock! Card.cache.write lock_cache_key, true end def unlock! Card.cache.write lock_cache_key, false end end;end;end;end; # ~~ generated from /Users/ethan/dev/decko/gem/card-mod-content/set/abstract/lock.rb ~~
Version data entries
6 entries across 6 versions & 1 rubygems