Class: OptionParser::Switch::NoArgument (Ruby 2.3.4)

OptionParser::Switch::NoArgument

Switch that takes no arguments.

Public Class Methods

incompatible_argument_styles(*)
 
               # File optparse.rb, line 655
def self.incompatible_argument_styles(*)
end
            
pattern()
 
               # File optparse.rb, line 658
def self.pattern
  Object
end
            

Public Instance Methods

parse(arg, argv)

Raises an exception if any arguments given.

 
               # File optparse.rb, line 650
def parse(arg, argv)
  yield(NeedlessArgument, arg) if arg
  conv_arg(arg)
end