Returns the first advertised TupleSpace.
Does this dependency require a prerelease?
Indicate if this NameTuple is for a prerelease version.
A requirement is a prerelease if any of the versions inside of it are prereleases
A version is considered a prerelease if it contains a letter.
Creates a new SourceList from an array of sources.
Returns an array of syntax error messages
If no missing pairs are found it falls back on the original error messages
Invoked by methods like Thread.join, and by Mutex, to signify that current Fiber is blocked until further notice (e.g. unblock) or until timeout has elapsed.
blocker is what we are waiting on, informational only (for debugging and logging). There are no guarantee about its value.
Expected to return boolean, specifying whether the blocking operation was successful or not.
Invoked to wake up Fiber previously blocked with block (for example, Mutex#lock calls block and Mutex#unlock calls unblock). The scheduler should use the fiber parameter to understand which fiber is unblocked.
blocker is what was awaited for, but it is informational only (for debugging and logging), and it is not guaranteed to be the same value as the blocker for block.
Returns true if this lock is currently held by some thread.
Attempts to grab the lock and waits if it isn’t available. Raises ThreadError if mutex was locked by the current thread.
Releases the lock. Raises ThreadError if mutex wasn’t locked by the current thread.
Obtains a lock, runs the block, and releases the lock when the block completes. See the example under Thread::Mutex.
Wakes up all threads waiting for this lock.
Prettify (indent) an HTML string.
string is the HTML string to indent. shift is the indentation unit to use; it defaults to two spaces.
print CGI.pretty("<HTML><BODY></BODY></HTML>") # <HTML> # <BODY> # </BODY> # </HTML> print CGI.pretty("<HTML><BODY></BODY></HTML>", "\t") # <HTML> # <BODY> # </BODY> # </HTML>
Formats and writes to the stream converting parameters under control of the format string.
See Kernel#sprintf for format string details.
Generate a BlockQuote element as a string.
cite can either be a string, give the URI for the source of the quoted text, or a hash, giving all attributes of the element, or it can be omitted, in which case the element has no attributes.
The body is provided by the passed-in no-argument block
blockquote("http://www.example.com/quotes/foo.html") { "Foo!" } #=> "<BLOCKQUOTE CITE=\"http://www.example.com/quotes/foo.html\">Foo!</BLOCKQUOTE>
Create a new Location object