Class: Merb::Generators::MerbFlatGenerator

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

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

Instance Method Details

#app_nameObject



19
20
21
# File 'lib/merb-gen/merb/merb_flat.rb', line 19

def app_name
  self.name.snake_case
end

#destination_rootObject



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

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