Class: Pu::Gen::PugGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pu::Gen::PugGenerator
- Defined in:
- lib/generators/pu/gen/pug/pug_generator.rb
Instance Method Summary collapse
Instance Method Details
#rubocop ⇒ Object
20 21 22 |
# File 'lib/generators/pu/gen/pug/pug_generator.rb', line 20 def rubocop run "standardrb --fix" end |
#start ⇒ Object
15 16 17 18 |
# File 'lib/generators/pu/gen/pug/pug_generator.rb', line 15 def start template "pug.rb.tt", "lib/generators/pu/#{pug_path}/#{pug_class.underscore}.rb" create_file "lib/generators/pu/#{pug_path}/templates/.keep" end |