Class: Merb::Generators::MerbPluginGenerator

Inherits:
NamedGenerator show all
Defined in:
lib/generators/merb_plugin.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from NamedGenerator

#class_name, #file_name, #symbol_name, #test_class_name

Methods inherited from Generator

#go_up, #initialize, #with_modules

Constructor Details

This class inherits a constructor from Merb::Generators::Generator

Class Method Details

.source_rootObject



5
6
7
# File 'lib/generators/merb_plugin.rb', line 5

def self.source_root
  File.join(super, 'application', 'merb_plugin')
end

Instance Method Details

#destination_rootObject



21
22
23
# File 'lib/generators/merb_plugin.rb', line 21

def destination_root
  File.join(@destination_root, base_name)
end