Sha256: fff027c2880526436d726bcfef70138430d82e7a1a6a706f50dfa5db7b3bc430
Contents?: true
Size: 1.16 KB
Versions: 12
Compression:
Stored size: 1.16 KB
Contents
# -*- encoding : utf-8 -*- class Card; module Set; module Right; module MachineOutput; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/right/machine_output.rb ~~~~~~~~~~~ def followable? false end def history? false end format do view :not_found do |args| if update_machine_output_live? Card::Cache.reset_all # FIXME: wow, this is overkill, no? root.error_status = 302 card.left.update_machine_output card_path card.left.machine_output_url else super args end end def update_machine_output_live? case when !card.left.is_a?(Machine) then false # must be a machine when card.left.locked? then false # machine must not be running when card.new_card? then true # always update if new else # must want current output (won't re-output old stuff) (selected_id = card.selected_action_id) && selected_id == card.last_action_id end end end # ~~~~~~~~~~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/right/machine_output.rb ~~~~~~~~~~~ end;end;end;end;
Version data entries
12 entries across 12 versions & 1 rubygems