class Docopt::Required
Public Instance Methods
match(left, collected=nil)
click to toggle source
# File lib/docopt.rb, line 298 def match(left, collected=nil) collected ||= [] l = left c = collected for p in self.children matched, l, c = p.match(l, c) if not matched return [false, left, collected] end end return [true, l, c] end