Sha256: cf4de457e0dadcf064fdbda2efe230a14124c21e03300e68758a8a8b65d173dd
Contents?: true
Size: 1.1 KB
Versions: 5
Compression:
Stored size: 1.1 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 format do view :not_found do |args| if update_machine_output_live? Card::Cache.reset_global # FIXME - wow, this kind of hard core, 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? said = card.selected_action_id card.left.kind_of? Machine and # must be a machine !card.left.locked? and # machine must not already be running ( card.new_card? or !said or said == card.last_action_id ) # must want current output (won't re-output old stuff) 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
5 entries across 5 versions & 1 rubygems