Class: Merb::Generators::MerbCoreGenerator
- Inherits:
-
AppGenerator
- Object
- Templater::Generator
- Generator
- NamedGenerator
- AppGenerator
- Merb::Generators::MerbCoreGenerator
- Defined in:
- lib/generators/merb/merb_core.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AppGenerator
#gems_for_orm, #gems_for_template_engine, #gems_for_testing_framework, #initialize, #merb_gems_version
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
.common_templates_dir ⇒ Object
12 13 14 15 |
# File 'lib/generators/merb/merb_core.rb', line 12 def self.common_templates_dir File.(File.join(File.dirname(__FILE__), '..', 'templates', 'application', 'common')) end |
.source_root ⇒ Object
Paths
8 9 10 |
# File 'lib/generators/merb/merb_core.rb', line 8 def self.source_root File.join(super, 'application', 'merb_core') end |
Instance Method Details
#common_templates_dir ⇒ Object
21 22 23 |
# File 'lib/generators/merb/merb_core.rb', line 21 def common_templates_dir self.class.common_templates_dir end |
#destination_root ⇒ Object
17 18 19 |
# File 'lib/generators/merb/merb_core.rb', line 17 def destination_root File.join(@destination_root, base_name) end |