Class: Pu::Gen::PugGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/pu/gen/pug/pug_generator.rb

Instance Method Summary collapse

Instance Method Details

#rubocopObject



20
21
22
# File 'lib/generators/pu/gen/pug/pug_generator.rb', line 20

def rubocop
  run "standardrb --fix"
end

#startObject



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