Class: Merb::Generators::HelperGenerator
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/helper.rb', line 5
def self.source_root
File.join(super, 'helper')
end
|
Instance Method Details
#file_name ⇒ Object
39
40
41
|
# File 'lib/merb-gen/helper.rb', line 39
def file_name
helper_class_name.snake_case
end
|
#full_class_name ⇒ Object
35
36
37
|
# File 'lib/merb-gen/helper.rb', line 35
def full_class_name
chunks.join('::')
end
|
#helper_class_name ⇒ Object
31
32
33
|
# File 'lib/merb-gen/helper.rb', line 31
def helper_class_name
chunks.last
end
|
#helper_modules ⇒ Object
27
28
29
|
# File 'lib/merb-gen/helper.rb', line 27
def helper_modules
chunks[0..-2]
end
|