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