Class: Ptero::Generator::LandingGenerator

Inherits:
PHPGenerator show all
Defined in:
lib/ptero/generators/landinggenerator.rb

Overview

Generator for the global landing page of the application that handles all incoming requests and initiates Routing

Instance Attribute Summary

Attributes inherited from Ptero::Generator

#app, #dir, #name

Instance Method Summary collapse

Methods inherited from PHPGenerator

#extension

Methods inherited from Ptero::Generator

const_missing, #content, #content_params, #extension, #filename, #generate, #generated?, #location, #reload, #remove, #template_path, #to_s, #type

Constructor Details

#initializeLandingGenerator

Initialize with name “index”



13
14
15
# File 'lib/ptero/generators/landinggenerator.rb', line 13

def initialize
  super 'index'
end

Instance Method Details

#path"www"

Returns www“.

Returns:

  • ("www")

    www“



18
19
20
# File 'lib/ptero/generators/landinggenerator.rb', line 18

def path
  'www'
end