thr.key?(sym) â true or false
Instance Public methods
Returns true
if the given string (or symbol) exists as a
fiber-local variable.
me = Thread.current me[:oliver] = "a" me.key?(:oliver) #=> true me.key?(:stanley) #=> false
Returns true
if the given string (or symbol) exists as a
fiber-local variable.
me = Thread.current me[:oliver] = "a" me.key?(:oliver) #=> true me.key?(:stanley) #=> false
Please login to continue.