Class: Merb::Generators::FullSliceGenerator

Inherits:
BaseSliceGenerator show all
Defined in:
lib/generators/full.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseSliceGenerator

common_template

Constructor Details

#initialize(*args) ⇒ FullSliceGenerator

Returns a new instance of FullSliceGenerator.



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

def initialize(*args)
  Merb.disable(:initfile)
  super
end

Class Method Details

.source_rootObject



10
11
12
# File 'lib/generators/full.rb', line 10

def self.source_root
  File.join(File.dirname(__FILE__), 'templates', 'full')
end

Instance Method Details

#destination_rootObject



30
31
32
# File 'lib/generators/full.rb', line 30

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