Docopt::LeafPattern
Inherits Docopt::Pattern < Reference < Object
Constructors
new(name : Nil | String, value : Array(String) | Bool | Int32 | String | Nil = nil)
SourceInstance methods
flat(*types)
Sourcematch(left : Array(Pattern), collected : Nil | Array(Pattern) = nil) : Tuple(Bool, Array(Pattern), Array(Pattern))
Sourcename
Sourcesingle_match(left)
Sourceto_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.
value
Sourcevalue=(value : Array(String) | Bool | Int32 | String | Nil)
Source