Class OptionParser::NoArgument
In: optparse.rb
Parent: self

Switch that takes no arguments.

Methods

Public Class methods

[Source]

# File optparse.rb, line 433
      def self.incompatible_argument_styles(*)
      end

[Source]

# File optparse.rb, line 436
      def self.pattern
        Object
      end

Public Instance methods

Raises an exception if any arguments given.

[Source]

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

[Validate]

ruby-doc.org is a service of James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.