Class: Merb::Generators::MerbPluginGenerator

Inherits:
ApplicationGenerator show all
Defined in:
lib/merb-gen/merb_plugin.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Generator

#initialize, #with_modules

Constructor Details

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

Class Method Details

.source_rootObject



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_nameObject



21
22
23
# File 'lib/merb-gen/merb_plugin.rb', line 21

def base_name
  self.name.snake_case
end

#destination_rootObject



25
26
27
# File 'lib/merb-gen/merb_plugin.rb', line 25

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