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