Class: Merb::Generators::MerbFullGenerator

Inherits:
ApplicationGenerator show all
Defined in:
lib/merb-gen/merb/merb_full.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/merb_full.rb', line 5

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

Instance Method Details

#app_nameObject



23
24
25
# File 'lib/merb-gen/merb/merb_full.rb', line 23

def app_name
  self.name.snake_case
end

#destination_rootObject



27
28
29
# File 'lib/merb-gen/merb/merb_full.rb', line 27

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