Class: GimmeGimme::Generators::Base
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- GimmeGimme::Generators::Base
- Defined in:
- lib/generators/gimme_gimme/base.rb
Overview
Base generator for GimmeGimme generators. Setups up the source root.
Direct Known Subclasses
Class Method Summary collapse
-
.source_root ⇒ String
Source root for tempates within a gimme_gimme generator.
Class Method Details
.source_root ⇒ String
Returns source root for tempates within a gimme_gimme generator.
9 10 11 12 13 14 |
# File 'lib/generators/gimme_gimme/base.rb', line 9 def self.source_root @_gimme_gimme_source_root ||= File.(File.join(File.dirname(__FILE__), generator_name, 'templates')) end |