Module: Card::Machine

Defined in:
card-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
11
# File 'card-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