module FiberRecycling::ThreadExtensions
Public Instance Methods
[](key)
click to toggle source
Calls superclass method
# File lib/fiber_recycling/thread_extensions.rb, line 4 def [](key) if key == :fiber_recycling__fiber || Fiber.root? super else Fiber.current.variables[key] end end
[]=(key, value)
click to toggle source
Calls superclass method
# File lib/fiber_recycling/thread_extensions.rb, line 12 def []=(key, value) if key == :fiber_recycling__fiber || Fiber.root? super else Fiber.current.variables[key] = value end end