Class: Ptero::Generator::LayoutGenerator

Inherits:
TwigGenerator show all
Defined in:
lib/ptero/generators/layoutgenerator.rb

Overview

Generate application layout template

Instance Attribute Summary

Attributes inherited from Ptero::Generator

#app, #dir, #name

Instance Method Summary collapse

Methods inherited from TwigGenerator

#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') ⇒ LayoutGenerator

Returns a new instance of LayoutGenerator.

Parameters:

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

    the name of the application



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

def initialize(name='application')
  super(name)
end