Class: MarathiTyping::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- MarathiTyping::InstallGenerator
- Defined in:
- lib/generators/marathi_typing/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_controller ⇒ Object
9 10 11 |
# File 'lib/generators/marathi_typing/install_generator.rb', line 9 def copy_controller copy_file 'marathi_typing_controller.js', 'app/javascript/controllers/marathi_typing_controller.js' end |
#show_instructions ⇒ Object
13 14 15 16 |
# File 'lib/generators/marathi_typing/install_generator.rb', line 13 def show_instructions say '✅ Marathi Typing installed!' say '👉 Add `data-controller="marathi-typing"` and class `marathi-typing` to your input fields.' end |