Sha256: ba4ef07a1272f5f49c9cc06ef2e9dad4793129e554840a1a5760b59a45acbd74
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class Abstract # Set: Abstract (Lock) # module Lock; extend Card::Set def self.source_location; "/Users/ezl5238/dev/decko/gem/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/ezl5238/dev/decko/gem/mod/content/set/abstract/lock.rb ~~
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
card-1.102.0 | tmpsets/set/mod006-content/abstract/lock.rb |