Module: Card::Machine

Defined in:
mod/machines/lib/card/machine.rb

Constant Summary collapse

REFRESHED =
"MACHINE_ASSETS_REFRESHED".freeze

Class Method Summary collapse

Class Method Details

.refresh_script_and_styleObject



6
7
8
9
10
# File 'mod/machines/lib/card/machine.rb', line 6

def refresh_script_and_style
  return unless refresh_script_and_style?
  Card.fetch(:all, :script)&.update_if_source_file_changed
  Card.fetch(:all, :style)&.update_if_source_file_changed
end