disu.se

UndefinedClass

Namespace

Ame::Method

Ancestors
  1. Object

A Method in its undefined state. This class is used to construct the method before it gets defined, setting up a description, specifying that options_must_precede_arguments, adding flags, toggles, switches, options, multioptions, arguments, optional arguments, splats, spluses, and finally defining it.

Instance Methods

option?(optionString)Boolean#

Returns true if option has been defined on the receiver.

arguments?Boolean#

Returns true if any arguments have been defined on the receiver.

valid?Boolean#

Returns true if a description has been defined on the receiver.