Class: Ptero::Generator::PHPGenerator

Inherits:
Ptero::Generator show all
Defined in:
lib/ptero/generators/phpgenerator.rb

Overview

Generator for PHP files

Instance Attribute Summary

Attributes inherited from Ptero::Generator

#app, #dir, #name

Instance Method Summary collapse

Methods inherited from Ptero::Generator

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

Constructor Details

This class inherits a constructor from Ptero::Generator

Instance Method Details

#extensionString

Returns “php”.

Returns:

  • (String)

    “php”



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

def extension
  'php'
end

#pathString

Returns “php”.

Returns:

  • (String)

    “php”



15
16
17
# File 'lib/ptero/generators/phpgenerator.rb', line 15

def path
  'php'
end