W3cubDocs

/Ruby 2.5

class OptionParser::Switch::NoArgument

Parent:
self

Switch that takes no arguments.

Public Class Methods

incompatible_argument_styles(*) Show source
# File lib/optparse.rb, line 654
def self.incompatible_argument_styles(*)
end
pattern() Show source
# File lib/optparse.rb, line 657
def self.pattern
  Object
end

Public Instance Methods

parse(arg, argv) { |NeedlessArgument, arg| ... } Show source
# File lib/optparse.rb, line 649
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.