Sha256: 2bd77bb8a7d1d12807de900fb96f12f7437ccdd40978854db1a1f5885bf5e078
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-1.101.7 | tmpsets/set/mod006-card-mod-content/abstract/lock.rb |
card-1.101.6 | tmpsets/set/mod006-card-mod-content/abstract/lock.rb |