Pegasus::Generators::Api::FileGenerator(C, I)
Inherits Reference / Object
A base class for a source file generator.
This class is meant to be extended by each individual
file generator that uses ECR, and thus provides
the methods #input! and #context to make
the genertor's input and context available inside
the template file.
Constructors
Creates a new file generator attached to he given PegasusOptionParser,
with the given name, default filename, and description.
Instance methods
The default filename this generator will write to.
The internal name of this file generator,
which will be associated with a filename by the PegasusOptionParser.
The internal name of this file generator,
which will be associated with a filename by the PegasusOptionParser.
The parser program to which this generator belongs, used to retreive input and context and to configure and retreive file names.
The parser program to which this generator belongs, used to retreive input and context and to configure and retreive file names.