class OptionParser::Switch::NoArgument
Switch
that takes no arguments.
Public Instance Methods
parse
(arg, argv) { |NeedlessArgument, arg| ... }
Raises an exception if any arguments given.
# File lib/optparse.rb, line 717 def parse(arg, argv) yield(NeedlessArgument, arg) if arg conv_arg(arg) end