Sha256: 9b7f74e0464479e98aa56839b2ae73b9a55c94e0a2dbeadcae59b3cdd4d3f443

Contents?: true

Size: 884 Bytes

Versions: 10

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

10 entries across 10 versions & 1 rubygems

Version Path
card-1.100.0 tmpsets/set/mod014-machines/abstract/machine/output_cache.rb
card-1.99.4 tmpsets/set/mod014-machines/abstract/machine/output_cache.rb
card-1.99.3 tmpsets/set/mod014-machines/abstract/machine/output_cache.rb
card-1.99.2 tmpsets/set/mod014-machines/abstract/machine/output_cache.rb
card-1.99.1 tmpsets/set/mod014-machines/abstract/machine/output_cache.rb
card-1.99.0 tmpsets/set/mod014-machines/abstract/machine/output_cache.rb
card-1.98.3 tmpsets/set/mod014-machines/abstract/machine/output_cache.rb
card-1.98.2 tmpsets/set/mod014-machines/abstract/machine/output_cache.rb
card-1.98.1 tmpsets/set/mod014-machines/abstract/machine/output_cache.rb
card-1.98.0 tmpsets/set/mod014-machines/abstract/machine/output_cache.rb