disu.se

AmeModule

Namespace

Top-level Namespace

Namespace for Ame.

Children

AbortAllProcessing #

Value thrown to abort processing of a Root.process or Root.call.

AbortProcessing #

Value thrown to abort processing of a Class.process or Class.call.

Argument

Represents an argument to a Method.

Arguments

The arguments to a method in its defined state.

Class

The superclass of a Ruby class that wants to be able to be invoked from the command line (or with any list of String options and arguments).

Flag

Represents a boolean option to a Method that doesn’t take an argument, though an argument is actually allowed if it’s made explicit by following the option name with a ‘=’ character and the argument value.

Help

Namespace for help output.

MalformedArgument #

Error raised when an argument can’t be parsed into the desired type.

Method

A method in its defined state.

Methods

Stores #each Method defined on a Class.

MissingArgument #

Error raised when a required argument is missing.

Multioption

Represents an option to a Method that takes an argument that can be given any number of times.

Option

Represents an option to a Method that takes an argument.

Optional

Represents an optional argument to a Method.

Options

The options to a method in its defined state.

Root

Root of a hierarchy of Classes.

Splat

Represents a splat argument to a Method, which works just like a Splus, except that it won’t fail if there are no more arguments left.

Splus

Represents a splus argument to a Method, which works just like a normal Argument, except that it’ll process all remaining arguments.

SuperfluousArgument #

Error raised when too many arguments have been given.

Switch

Represents an option to a Method that takes an optional argument.

Types

Types registered with Ame for parsing command-line arguments into Ruby values.

UnrecognizedMethod #

Error raised when a dispatch is invoked on a method that doesn’t exist.

UnrecognizedOption #

Error raised when an unrecognized option has been given.