Class: Merb::Generators::MerbPluginGenerator
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Generator
#initialize, #with_modules
Class Method Details
.source_root ⇒ Object
5
6
7
|
# File 'lib/merb-gen/merb_plugin.rb', line 5
def self.source_root
File.join(super, 'merb_plugin')
end
|
Instance Method Details
#base_name ⇒ Object
21
22
23
|
# File 'lib/merb-gen/merb_plugin.rb', line 21
def base_name
self.name.snake_case
end
|
#destination_root ⇒ Object
25
26
27
|
# File 'lib/merb-gen/merb_plugin.rb', line 25
def destination_root
File.join(@destination_root, base_name)
end
|