In Files

  • rubygems/optparse/lib/optparse.rb

Class/Module Index [+]

Quicksearch

Gem::OptionParser::Switch::NoArgument

Switch that takes no arguments.

Public Class Methods

incompatible_argument_styles(*) click to toggle source
 
               # File rubygems/optparse/lib/optparse.rb, line 690
def self.incompatible_argument_styles(*)
end
            
pattern() click to toggle source
 
               # File rubygems/optparse/lib/optparse.rb, line 693
def self.pattern
  Object
end
            

Public Instance Methods

parse(arg, argv) click to toggle source

Raises an exception if any arguments given.

 
               # File rubygems/optparse/lib/optparse.rb, line 685
def parse(arg, argv)
  yield(NeedlessArgument, arg) if arg
  conv_arg(arg)
end