Module: Para::Generators::NameHelpers
- Included in:
- NamedBase, Page::SectionGenerator
- Defined in:
- lib/para/generators/name_helpers.rb
Instance Method Summary collapse
Instance Method Details
#namespaced_class_name ⇒ Object
12 13 14 |
# File 'lib/para/generators/name_helpers.rb', line 12 def namespaced_class_name @namespaced_class_name ||= [namespace, class_name].compact.join('::') end |
#plural_namespaced_path ⇒ Object
4 5 6 |
# File 'lib/para/generators/name_helpers.rb', line 4 def plural_namespaced_path @plural_namespaced_path ||= File.join(*class_path, plural_name) end |
#singular_namespaced_path ⇒ Object
8 9 10 |
# File 'lib/para/generators/name_helpers.rb', line 8 def singular_namespaced_path @singular_namespaced_path ||= File.join(*class_path, singular_name) end |