Class: Merb::Generators::MerbVeryFlatGenerator

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

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

Instance Method Details

#app_nameObject



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

def app_name
  self.name.snake_case
end

#class_nameObject



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

def class_name
  self.name.camel_case
end