Class: PartialMenu::YamlGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PartialMenu::YamlGenerator
- Defined in:
- lib/generators/yaml/yaml_generator.rb
Overview
Generates example menu.yml file in config/
Instance Method Summary collapse
Instance Method Details
#create_menu_yaml ⇒ Object
11 12 13 14 |
# File 'lib/generators/yaml/yaml_generator.rb', line 11 def @type = ['type'] copy_file 'menu.yml', "config/#{@type}_menu.yml" end |