class

Pegasus::Generators::Api::FileInput(I)

Inherits Pegasus::Generators::Api::Input / Reference / Object

Input method that reads from a file, the name of which is specified on the command line.

Constructors

new(name : String, description : String)

Create a new file input with the given internal name and user-friendly description.

Source

Instance methods

add_option(opt_parser)

Register this input method's options with the given PegasusOptionParser.

Source
description

The user-friendly description of the input that will be shown on the help screen.

Source
description=(description : String)

The user-friendly description of the input that will be shown on the help screen.

Source
filename

The name of the file to read from.

Source
filename=(filename : String | Nil)

The name of the file to read from.

Source
name

The internal name of this input. The PegasusOptionParser will associated a file name with this string.

Source
name=(name : String)

The internal name of this input. The PegasusOptionParser will associated a file name with this string.

Source
process(opt_parser, file) : I

Read a value of type I from a file.

Source
process(opt_parser) : I

Read input of type I.

Source