Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
docopt
v0.3.0
Docopt
AnyOptions
Argument
BashCompletion
BranchPattern
Command
CommandParams
DocoptException
DocoptExit
DocoptLanguageError
Either
FishCompletion
LeafPattern
OneOrMore
Option
Optional
Pattern
Required
Tokens
ZshCompletion
Generated using Crystal 1.16.3
2025-11-19 16:19:03 UTC
class
Docopt::
OneOrMore
Docopt::OneOrMore
Docopt::BranchPattern
Docopt::Pattern
Reference
Object
Defined in:
docopt.cr
Instance Method Summary
#match
(left : Array(Pattern), collected : Nil | Array(Pattern) =
nil
) : Tuple(Bool, Array(Pattern), Array(Pattern))
Instance methods inherited from class
Docopt::BranchPattern
children : Array(Docopt::Pattern)?
children
,
children=(children)
children=
,
flat(*types)
flat
,
to_s
to_s
Constructor methods inherited from class
Docopt::BranchPattern
new(children : Array(Pattern))
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
Instance Method Detail
def
match
(left : Array(
Pattern
), collected : Nil | Array(
Pattern
) =
nil
) : Tuple(Bool, Array(
Pattern
), Array(
Pattern
))
#
[
View source
]