Sha256: 7c823172233d50c94f23c3653728f2226989dffd462985f68670ee3347a6a47f

Contents?: true

Size: 884 Bytes

Versions: 8

Compression:

Stored size: 884 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Abstract; module Machine;
# Set: Abstract (Machine, OutputCache)
#
module OutputCache;
extend Card::Set
def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-machines/set/abstract/machine/output_cache.rb"; end
def fetch_cache_card input_card, new=nil
  new &&= { type_id: PlainTextID }
  Card.fetch input_card.name, name, :machine_cache, new: new
end

def cache_output_part input_card, output
  Auth.as_bot do
    # save virtual cards first
    # otherwise the cache card will save it to get the left_id
    # and trigger the cache update again
    input_card.save! if input_card.new_card?

    cache_card = fetch_cache_card(input_card, true)
    cache_card.update! content: output
  end
end
end;end;end;end;end;
# ~~ generated from /Users/ethan/dev/decko/gem/card-mod-machines/set/abstract/machine/output_cache.rb ~~

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.101.7 tmpsets/set/mod015-card-mod-machines/abstract/machine/output_cache.rb
card-1.101.6 tmpsets/set/mod015-card-mod-machines/abstract/machine/output_cache.rb
card-1.101.5 tmpsets/set/mod016-card-mod-machines/abstract/machine/output_cache.rb
card-1.101.4 tmpsets/set/mod016-card-mod-machines/abstract/machine/output_cache.rb
card-1.101.3 tmpsets/set/mod016-card-mod-machines/abstract/machine/output_cache.rb
card-1.101.2 tmpsets/set/mod016-card-mod-machines/abstract/machine/output_cache.rb
card-1.101.1 tmpsets/set/mod016-card-mod-machines/abstract/machine/output_cache.rb
card-1.101.0 tmpsets/set/mod016-card-mod-machines/abstract/machine/output_cache.rb