Class: Toybox::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Toybox::Generators::InstallGenerator
- Defined in:
- lib/generators/toybox/install_generator.rb
Class Method Summary collapse
-
.source_root ⇒ Object
see github.com/rspec/rspec-rails/blob/master/lib/generators/rspec.rb for alternatives.
Instance Method Summary collapse
-
#add_initializer_config ⇒ Object
all public methods in here will be run in order.
Class Method Details
.source_root ⇒ Object
see github.com/rspec/rspec-rails/blob/master/lib/generators/rspec.rb for alternatives
10 11 12 |
# File 'lib/generators/toybox/install_generator.rb', line 10 def self.source_root @source_root ||= File.("../templates", __FILE__) end |
Instance Method Details
#add_initializer_config ⇒ Object
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 |