Class OptionParser::Switch::NoArgument
In: lib/optparse.rb
Parent: self

Switch that takes no arguments.

Methods

Public Class methods

[Source]

     # File lib/optparse.rb, line 418
418:       def self.incompatible_argument_styles(*)
419:       end

[Source]

     # File lib/optparse.rb, line 421
421:       def self.pattern
422:         Object
423:       end

Public Instance methods

Raises an exception if any arguments given.

[Source]

     # File lib/optparse.rb, line 413
413:       def parse(arg, argv, &error)
414:         yield(NeedlessArgument, arg) if arg
415:         conv_arg(arg)
416:       end

[Validate]