Class: LazyHotkeys::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/lazy_hotkeys/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_js_runtimeObject



12
13
14
# File 'lib/generators/lazy_hotkeys/install/install_generator.rb', line 12

def copy_js_runtime
  template "lazy_hotkeys.js", options[:path]
end

#say_next_stepsObject



16
17
18
19
20
21
# File 'lib/generators/lazy_hotkeys/install/install_generator.rb', line 16

def say_next_steps
  say "    Added lazy_hotkeys JS runtime at \#{options[:path]}.\n    Ensure it's loaded on the page (Importmap pin or pack include).\n  MSG\nend\n"