Class: Ptero::Generator::LandingGenerator
- Inherits:
-
PHPGenerator
- Object
- Ptero::Generator
- PHPGenerator
- Ptero::Generator::LandingGenerator
- 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
Constant Summary
Constants inherited from Ptero::Generator
Instance Attribute Summary
Attributes inherited from Ptero::Generator
Instance Method Summary collapse
-
#initialize ⇒ LandingGenerator
constructor
Initialize with name “index”.
-
#path ⇒ "www"
Www“.
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 ⇒ LandingGenerator
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“.
18 19 20 |
# File 'lib/ptero/generators/landinggenerator.rb', line 18 def path 'www' end |