class

Docopt::LeafPattern

Inherits Docopt::Pattern < Reference < Object

Constructors

new(name : Nil | String, value : Array(String) | Bool | Int32 | String | Nil = nil)
Source

Instance methods

flat(*types)
Source
match(left : Array(Pattern), collected : Nil | Array(Pattern) = nil) : Tuple(Bool, Array(Pattern), Array(Pattern))
Source
name
Source
single_match(left)
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
value
Source
value=(value : Array(String) | Bool | Int32 | String | Nil)
Source