# OptionParser::Switch::Arguable (Module)

In: | optparse.rb

## Methods

extend_object new options options= order! parse! permute!

## Public Class methods

extend_object(obj)

[Source]

    # File optparse.rb, line 1763
        def self.extend_object(obj)
          super
          obj.instance_eval {@optparse = nil}
        end

new(*args)

[Source]

    # File optparse.rb, line 1767
        def initialize(*args)
          super
          @optparse = nil
        end

## Public Instance methods

options=(opt)

[Source]

    # File optparse.rb, line 1714
        def options=(opt)
          unless @optparse = opt
            class << self
              undef_method(:options)
              undef_method(:options=)
            end
          end
        end

options() {|@optparse| ...}

[Source]

    # File optparse.rb, line 1738
        def options
          @optparse ||= OptionParser.new
          block_given? or return @optparse
          begin
            yield @optparse
          rescue ParseError
            @optparse.warn $!
            nil
          end
        end

order!(&blk)

[Source]

    # File optparse.rb, line 1756
        def order!(&blk) options.order!(self, &blk) end

permute!()

[Source]

    # File optparse.rb, line 1757
        def permute!() options.permute!(self) end

parse!()

[Source]

    # File optparse.rb, line 1758
        def parse!() options.parse!(self) end

[Validate]