Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
docopt
master
Docopt
AnyOptions
Argument
BranchPattern
Command
DocoptException
DocoptExit
DocoptLanguageError
Either
LeafPattern
OneOrMore
Option
Optional
Pattern
Required
Tokens
Built with Crystal 1.9.2
2023-10-08 10:19:41 UTC
class
Docopt::Optional
Docopt::Optional
Docopt::BranchPattern
Docopt::Pattern
Reference
Object
Direct Known Subclasses
Docopt::AnyOptions
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
]