Class CompletingHash
In: optparse.rb
Parent: Hash

Hash with completion search feature. See OptionParser::Completion.

Methods

match  

Included Modules

Completion

Public Instance methods

Completion for hash key.

[Source]

# File optparse.rb, line 663
    def match(key)
      return key, *fetch(key) {
        raise AmbiguousArgument, catch(:ambiguous) {return complete(key)}
      }
    end

[Validate]

ruby-doc.org is a community service provided by Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.

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.