class Docopt::Command

Defined in:

docopt.cr

Constructors

Instance Method Summary

Instance methods inherited from class Docopt::Argument

single_match(left) single_match

Class methods inherited from class Docopt::Argument

parse(source) parse

Instance methods inherited from class Docopt::LeafPattern

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

Constructor methods inherited from class Docopt::LeafPattern

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

Instance methods inherited from class Docopt::Pattern

==(other : Pattern) : Bool ==, children : Array(Docopt::Pattern)? children, either : Either either, fix : Pattern fix, fix_identities(uniq = nil) : Pattern fix_identities, fix_repeating_arguments : Pattern fix_repeating_arguments, flat(*types) flat, hash hash, inspect(io) inspect, match(left : Array(Pattern), collected : Nil | Array(Pattern) = nil) : Tuple(Bool, Array(Pattern), Array(Pattern)) match

Constructor methods inherited from class Docopt::Pattern

new new

Constructor Detail

def self.new(name, value = false) #

[View source]

Instance Method Detail

def single_match(left) #

[View source]