Sha256: 73c39d17c0d6af666b7ac0eed4dd5b674772a1e8e522aa39eae2d95448401b16
Contents?: true
Size: 689 Bytes
Versions: 10
Compression:
Stored size: 689 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/core/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/core/set/abstract/lock.rb ~~
Version data entries
10 entries across 10 versions & 1 rubygems