APIdock / Ruby
/
method

parse

ruby latest stable - Class: OptionParser ::RequiredArgument

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

parse(arg, argv)
public

Raises an exception if argument is not present.

# File lib/optparse.rb, line 449
 def parse(arg, argv)
 unless arg
 raise MissingArgument if argv.empty?
 arg = argv.shift
 end
 conv_arg(*parse_arg(arg) {|*exc| raise(*exc)})
 end

AltStyle によって変換されたページ (->オリジナル) /