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

Switch that takes no arguments.

Methods

Public Class methods

[Source]

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

[Source]

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

Public Instance methods

Raises an exception if any arguments given.

[Source]

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

[Validate]