Class: Merb::Generators::ResourceGenerator
- Inherits:
-
ComponentGenerator
- Object
- Templater::Generator
- Generator
- ComponentGenerator
- Merb::Generators::ResourceGenerator
- Defined in:
- lib/merb-gen/resource.rb
Instance Method Summary collapse
Methods inherited from ComponentGenerator
Methods inherited from Generator
#initialize, source_root, #with_modules
Constructor Details
This class inherits a constructor from Merb::Generators::Generator
Instance Method Details
#controller_name ⇒ Object
20 21 22 |
# File 'lib/merb-gen/resource.rb', line 20 def controller_name name.pluralize end |
#model_name ⇒ Object
24 25 26 |
# File 'lib/merb-gen/resource.rb', line 24 def model_name name.singularize end |