self
Switch that takes an argument.
Switch
Raises an exception if argument is not present.
# File ruby-3.1.2/lib/optparse.rb, line 706 def parse(arg, argv) unless arg raise MissingArgument if argv.empty? arg = argv.shift end conv_arg(*parse_arg(arg, &method(:raise))) end
This page was generated for Ruby 3.1.2
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.42.0.