Class: Merb::Generators::ThorGenerator
- Inherits:
-
AppGenerator
- Object
- Templater::Generator
- Generator
- NamedGenerator
- AppGenerator
- Merb::Generators::ThorGenerator
- Defined in:
- lib/generators/thor.rb
Class Method Summary collapse
-
.source_root ⇒ Object
Paths.
Instance Method Summary collapse
Methods inherited from AppGenerator
Methods inherited from NamedGenerator
#class_name, #file_name, #initialize, #symbol_name, #test_class_name
Methods inherited from Generator
#go_up, #initialize, #with_modules
Methods included from ColorfulMessages
Constructor Details
This class inherits a constructor from Merb::Generators::AppGenerator
Class Method Details
.source_root ⇒ Object
Paths
8 9 10 |
# File 'lib/generators/thor.rb', line 8 def self.source_root File.join(super, 'application', 'common', 'merb_thor') end |
Instance Method Details
#common_templates_dir ⇒ Object
16 17 18 19 |
# File 'lib/generators/thor.rb', line 16 def common_templates_dir File.(File.join(File.dirname(__FILE__), 'templates', 'application', 'common')) end |
#destination_root ⇒ Object
12 13 14 |
# File 'lib/generators/thor.rb', line 12 def destination_root File.join(@destination_root) end |