Class: Merb::Generators::PartControllerGenerator
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Generator
#initialize, #with_modules
Class Method Details
.source_root ⇒ Object
5
6
7
|
# File 'lib/merb-gen/part_controller.rb', line 5
def self.source_root
File.join(super, 'part_controller')
end
|
Instance Method Details
#controller_class_name ⇒ Object
33
34
35
|
# File 'lib/merb-gen/part_controller.rb', line 33
def controller_class_name
chunks.last
end
|
#controller_modules ⇒ Object
29
30
31
|
# File 'lib/merb-gen/part_controller.rb', line 29
def controller_modules
chunks[0..-2]
end
|
#file_name ⇒ Object
41
42
43
|
# File 'lib/merb-gen/part_controller.rb', line 41
def file_name
controller_class_name.snake_case
end
|
#full_class_name ⇒ Object
37
38
39
|
# File 'lib/merb-gen/part_controller.rb', line 37
def full_class_name
chunks.join('::')
end
|