Class: NgAppGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/ng_app/ng_app_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_app_moduleObject



5
6
7
# File 'lib/generators/ng_app/ng_app_generator.rb', line 5

def create_app_module
  template "app_module.js.erb", "app/assets/javascripts/module.js"
end

#create_components_moduleObject



9
10
11
# File 'lib/generators/ng_app/ng_app_generator.rb', line 9

def create_components_module
  template "components_module.js.erb", "app/assets/javascripts/components/module.js"
end

#create_data_moduleObject



13
14
15
# File 'lib/generators/ng_app/ng_app_generator.rb', line 13

def create_data_module
  template "data_module.js.erb", "app/assets/javascripts/data/module.js"
end

#create_sections_moduleObject



17
18
19
# File 'lib/generators/ng_app/ng_app_generator.rb', line 17

def create_sections_module
  template "sections_module.js.erb", "app/assets/javascripts/sections/module.js"
end