Class: PartialMenu::YamlGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
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_yamlObject



11
12
13
14
# File 'lib/generators/yaml/yaml_generator.rb', line 11

def create_menu_yaml
  @type = options['type']
  copy_file 'menu.yml', "config/#{@type}_menu.yml"
end