abstract class Pegasus::Generators::Api::FileInput(I)
Overview
Input method that reads from a file, the name of which is specified on the command line.
Direct Known Subclasses
- Pegasus::Generators::CrystalSem::FullInput
- Pegasus::Generators::CrystalSem::LanguageInput
- Pegasus::Generators::CSem::FullInput
- Pegasus::Generators::CSem::LanguageInput
Defined in:
generators/generators.crConstructors
-
.new(name : String, description : String)
Create a new file input with the given internal name and user-friendly description.
Instance Method Summary
-
#add_option(opt_parser)
Register this input method's options with the given
PegasusOptionParser
. -
#description : String
The user-friendly description of the input that will be shown on the help screen.
-
#description=(description : String)
The user-friendly description of the input that will be shown on the help screen.
-
#filename : String | Nil
The name of the file to read from.
-
#filename=(filename : String | Nil)
The name of the file to read from.
-
#name : String
The internal name of this input.
-
#name=(name : String)
The internal name of this input.
-
#process(opt_parser, file) : I
Read a value of type
I
from a file. -
#process(opt_parser) : I
Read input of type
I
.
Instance methods inherited from class Pegasus::Generators::Api::Input(I)
add_option(opt_parser)
add_option,
process(opt_parser) : I
process
Constructor Detail
Create a new file input with the given internal name and user-friendly description.
Instance Method Detail
Register this input method's options
with the given PegasusOptionParser
.
The user-friendly description of the input that will be shown on the help screen.
The user-friendly description of the input that will be shown on the help screen.
The internal name of this input. The PegasusOptionParser
will associated a file name with this string.
The internal name of this input. The PegasusOptionParser
will associated a file name with this string.
Read input of type I
.