Results for: "Array"

No documentation available

Parse obj, returning an [op, version] pair. obj can be a String or a Gem::Version.

If obj is a String, it can be either a full requirement specification, like ">= 1.2", or a simple version number, like "1.2".

parse("> 1.0")                 # => [">", Gem::Version.new("1.0")]
parse("1.0")                   # => ["=", Gem::Version.new("1.0")]
parse(Gem::Version.new("1.0")) # => ["=,  Gem::Version.new("1.0")]

True if the version string matches RubyGems’ requirements.

Removes all sources from the SourceList.

A short summary of this gem’s description.

Recursively walk dependencies of this spec, executing the block for each hop.

No documentation available

Parses uri, raising if it’s invalid

Parses uri, returning the original uri if it’s invalid

No documentation available
No documentation available

Prints a formatted backtrace to the errors stream if backtraces are enabled.

Display a statement.

No documentation available
No documentation available
No documentation available

Returns an array of syntax error messages

If no missing pairs are found it falls back on the original error messages

No documentation available

Returns the parser to be used.

Unless a URI::Parser is defined, DEFAULT_PARSER is used.

Checks the fragment v component against the URI::Parser Regexp for :FRAGMENT.

Args

v

String

Description

Public setter for the fragment component v (with validation).

Usage

require 'uri'

uri = URI.parse("http://my.example.com/?id=25#time=1305212049")
uri.fragment = "time=1305212086"
uri.to_s  #=> "http://my.example.com/?id=25#time=1305212086"

Args

uri

String

Description

Parses uri and constructs either matching URI scheme object (File, FTP, HTTP, HTTPS, LDAP, LDAPS, or MailTo) or URI::Generic.

Usage

p = URI::Parser.new
p.parse("ldap://ldap.example.com/dc=example?user=john")
#=> #<URI::LDAP ldap://ldap.example.com/dc=example?user=john>

Args

str

String to search

schemes

Patterns to apply to str

Description

Attempts to parse and merge a set of URIs. If no block given, then returns the result, else it calls block for each element in result.

See also URI::Parser.make_regexp.

Removes all objects from the queue.

Removes all objects from the queue.

Removes all map entries; returns self.

Search took: 3ms  ·  Total Results: 2478