Results for: "slice"

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

Checks the gem directory for the following potential inconsistencies/problems:

returns a hash of ErrorData objects, keyed on the problem gem’s name.

No documentation available

See IO.unlink when path is a file.

See Dir.unlink when path is a directory.

No documentation available
No documentation available

replace self by other URI object

Checks if URI has a path

Returns normalized URI

Destructive version of normalize

Args

v

URI or String

Description

attempt to parse other URI +oth+
return [parsed_oth, self]

Usage

require 'uri'

uri = URI.parse("http://my.example.com")
uri.coerce("http://foo.com")
#=> [#<URI::HTTP:0x00000000bcb028 URL:http://foo.com/>, #<URI::HTTP:0x00000000d92178 URL:http://my.example.com>]

Checks if URI has a path For URI::LDAP this will return false

Returns a split URI against regexp

Returns a split URI against regexp

Is this an SSL request?

Adds listeners from address and port to the server. See WEBrick::Utils::create_listeners for details.

Replaces the contents of the database with the contents of the specified object. Takes any object which implements the each_pair method, including Hash and DBM objects.

Returns true if stat is successful, false if not. Returns nil if exited? is not true.

Releases the lock and sleeps timeout seconds if it is given and non-nil or forever. Raises ThreadError if mutex wasn’t locked by the current thread.

When the thread is next woken up, it will attempt to reacquire the lock.

Note that this method can wakeup without explicit Thread#wakeup call. For example, receiving signal and so on.

Returns the replacement string.

ec = Encoding::Converter.new("euc-jp", "us-ascii")
p ec.replacement    #=> "?"

ec = Encoding::Converter.new("euc-jp", "utf-8")
p ec.replacement    #=> "\uFFFD"

Sets the replacement string.

ec = Encoding::Converter.new("utf-8", "us-ascii", :undef => :replace)
ec.replacement = "<undef>"
p ec.convert("a \u3042 b")      #=> "a <undef> b"
No documentation available

Sets the type alias for alias_type as orig_type

See IO#readline.

Reads lines from the stream which are separated by eol.

See also gets

Search took: 4ms  ·  Total Results: 1149