Results for: "to_proc"

No documentation available
No documentation available

Opens a block for grouping objects to be pretty printed.

Arguments:

Mirrors the C extension’s StringQuery::local? method.

Whether or not this string is a valid local variable name.

A Location object representing the location of this token in the source.

No documentation available
No documentation available

Does this dependency require a prerelease?

Indicate if this NameTuple is for a prerelease version.

No documentation available

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.

No documentation available

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>

Writes args to the stream.

See IO#print for full details.

Search took: 4ms  ·  Total Results: 1563