Class: Ptero::Generator::ModelGenerator
- Inherits:
-
PHPClassGenerator
- Object
- Ptero::Generator
- PHPGenerator
- PHPClassGenerator
- Ptero::Generator::ModelGenerator
- Defined in:
- lib/ptero/generators/modelgenerator.rb
Overview
A generator for PHP ActiveRecord Models
Constant Summary
Constants inherited from Ptero::Generator
Instance Attribute Summary
Attributes inherited from PHPClassGenerator
Attributes inherited from Ptero::Generator
Instance Method Summary collapse
-
#initialize(name) ⇒ ModelGenerator
constructor
A new instance of ModelGenerator.
-
#path ⇒ String
Superclass_path/models.
Methods inherited from PHPGenerator
Methods inherited from Ptero::Generator
const_missing, #content, #content_params, #extension, #filename, #generate, #generated?, #location, #reload, #remove, #template_path, #to_s, #type
Constructor Details
#initialize(name) ⇒ ModelGenerator
Returns a new instance of ModelGenerator.
11 12 13 |
# File 'lib/ptero/generators/modelgenerator.rb', line 11 def initialize(name) super(name) end |
Instance Method Details
#path ⇒ String
Returns superclass_path/models.
16 17 18 |
# File 'lib/ptero/generators/modelgenerator.rb', line 16 def path "#{super}/models" end |