method

fetch

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: Thread
fetch(*args) public

Returns a fiber-local for the given key. If the key can’t be found, there are several options: With no other arguments, it will raise a KeyError exception; if default is given, then that will be returned; if the optional code block is specified, then that will be run and its result returned. See Thread#[] and Hash#fetch.

Show source
Register or log in to add new notes.