Class: Toybox::Generators::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



10
11
12
# File 'lib/generators/toybox/install_generator.rb', line 10

def self.source_root
  @source_root ||= File.expand_path("../templates", __FILE__)
end

Instance Method Details

#add_initializer_configObject

all public methods in here will be run in order



15
16
17
# File 'lib/generators/toybox/install_generator.rb', line 15

def add_initializer_config
  template "toybox.rb", "config/initializers/toybox.rb"
end