Class: Ptero::Generator::ApplicationJavascriptGenerator

Inherits:
JavascriptGenerator show all
Defined in:
lib/ptero/generators/applicationjavascriptgenerator.rb

Overview

Generate Javascript for the default page layout

Constant Summary

Constants inherited from Ptero::Generator

TEMPLATE_PATH

Instance Attribute Summary

Attributes inherited from JavascriptGenerator

#desc

Attributes inherited from Ptero::Generator

#app, #dir, #name

Instance Method Summary collapse

Methods inherited from JavascriptGenerator

#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', desc = 'The application-wide Javascript file') ⇒ ApplicationJavascriptGenerator

Returns a new instance of ApplicationJavascriptGenerator.

Parameters:

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

    The name of the Javscript, defaults to “application”

  • desc (String) (defaults to: 'The application-wide Javascript file')

    The description of the Javascript, defaults to “The application-wide Javascript file”



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

def initialize(name='application',desc = 'The application-wide Javascript file')
  super name,desc
end