Class: Ptero::Generator::PageNotFoundGenerator

Inherits:
ViewGenerator show all
Defined in:
lib/ptero/generators/pagenotfoundgenerator.rb

Overview

pagenotfoundgenerator.rb

Generate the HTTP 404 template

Instance Attribute Summary

Attributes inherited from ViewGenerator

#parent

Attributes inherited from Ptero::Generator

#app, #dir, #name

Instance Method Summary collapse

Methods inherited from TwigGenerator

#extension, #path

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.

Parameters:

  • parent (String) (defaults to: 'application')

    the layout to extend



11
12
13
# File 'lib/ptero/generators/pagenotfoundgenerator.rb', line 11

def initialize(parent = 'application')
  super '404',parent
end