class OptionParser::Switch::NoArgument
Switch that takes no arguments.
Public Class Methods
# File lib/optparse.rb, line 655 def self.incompatible_argument_styles(*) end
# File lib/optparse.rb, line 658 def self.pattern Object end
Public Instance Methods
# File lib/optparse.rb, line 650 def parse(arg, argv) yield(NeedlessArgument, arg) if arg conv_arg(arg) end
Raises an exception if any arguments given.
Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.