Class: Ptero::Generator::ApplicationControllerGenerator

Inherits:
ControllerGenerator show all
Defined in:
lib/ptero/generators/applicationcontrollergenerator.rb

Overview

applicationcontrollergenerator.rb

generate the superclass of controllers

Constant Summary

Constants inherited from Ptero::Generator

TEMPLATE_PATH

Instance Attribute Summary

Attributes inherited from PHPClassGenerator

#parent

Attributes inherited from Ptero::Generator

#app, #dir, #name

Instance Method Summary collapse

Methods inherited from ControllerGenerator

#path

Methods inherited from PHPGenerator

#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(name = 'Application') ⇒ ApplicationControllerGenerator

Returns a new instance of ApplicationControllerGenerator.

Parameters:

  • name (String) (defaults to: 'Application')

    the name of the controller



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

def initialize(name='Application')
  super(name,'\Dinosaur\\')
end