Class: LazyHotkeys::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- LazyHotkeys::Generators::InstallGenerator
- Defined in:
- lib/generators/lazy_hotkeys/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_js_runtime ⇒ Object
12 13 14 |
# File 'lib/generators/lazy_hotkeys/install/install_generator.rb', line 12 def copy_js_runtime template "lazy_hotkeys.js", [:path] end |
#say_next_steps ⇒ Object
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" |