method

parse_arg

ruby latest stable - Class: OptionParser::Switch
parse_arg(arg)
private

Parses arg and returns rest of arg and matched portion to the argument pattern. Yields when the pattern doesn’t match substring.