OptionParser::Switch::NoArgument (Class)

In: optparse.rb
Parent: self

Switch that takes no arguments.

Public Class methods

[Source]

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

[Source]

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

Public Instance methods

Raises an exception if any arguments given.

[Source]

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

[Validate]