Class: Ptero::Generator::PageNotFoundGenerator
- Inherits:
-
ViewGenerator
- Object
- Ptero::Generator
- TwigGenerator
- ViewGenerator
- Ptero::Generator::PageNotFoundGenerator
- Defined in:
- lib/ptero/generators/pagenotfoundgenerator.rb
Overview
pagenotfoundgenerator.rb
Generate the HTTP 404 template
Constant Summary
Constants inherited from Ptero::Generator
Instance Attribute Summary
Attributes inherited from ViewGenerator
Attributes inherited from Ptero::Generator
Instance Method Summary collapse
-
#initialize(parent = 'application') ⇒ PageNotFoundGenerator
constructor
A new instance of PageNotFoundGenerator.
Methods inherited from TwigGenerator
Methods inherited from Ptero::Generator
const_missing, #content, #content_params, #extension, #filename, #generate, #generated?, #location, #path, #reload, #remove, #template_path, #to_s, #type
Constructor Details
#initialize(parent = 'application') ⇒ PageNotFoundGenerator
Returns a new instance of PageNotFoundGenerator.
11 12 13 |
# File 'lib/ptero/generators/pagenotfoundgenerator.rb', line 11 def initialize(parent = 'application') super '404',parent end |