Class: Merb::Generators::MerbFlatGenerator
Class Method Summary
collapse
Instance Method Summary
collapse
#gems_for_orm, #gems_for_template_engine, #gems_for_testing_framework, #initialize, #merb_gems_version
#file_name, #initialize, #symbol_name, #test_class_name
Methods inherited from Generator
#go_up, #initialize, #with_modules
#error, #success, #warning
Class Method Details
.common_templates_dir ⇒ Object
12
13
14
15
|
# File 'lib/generators/merb/merb_flat.rb', line 12
def self.common_templates_dir
File.expand_path(File.join(File.dirname(__FILE__), '..',
'templates', 'application', 'common'))
end
|
.source_root ⇒ Object
8
9
10
|
# File 'lib/generators/merb/merb_flat.rb', line 8
def self.source_root
File.join(super, 'application', 'merb_flat')
end
|
Instance Method Details
#class_name ⇒ Object
86
87
88
|
# File 'lib/generators/merb/merb_flat.rb', line 86
def class_name
self.name.gsub("-", "_").camel_case
end
|
#common_templates_dir ⇒ Object
21
22
23
|
# File 'lib/generators/merb/merb_flat.rb', line 21
def common_templates_dir
self.class.common_templates_dir
end
|
#destination_root ⇒ Object
17
18
19
|
# File 'lib/generators/merb/merb_flat.rb', line 17
def destination_root
File.join(@destination_root, base_name)
end
|