module ReplyDelivery
ReplyDelivery — thread-local context for multi-piece IRC reply sends. Public: with_context, current Depends: (none) Tests: test/lib/reply_delivery_test.rb
Constants
- THREAD_KEY
Public Instance Methods
Source
# File lib/reply_delivery.rb, line 13 def with_context(context) previous = Thread.current[THREAD_KEY] Thread.current[THREAD_KEY] = context yield ensure Thread.current[THREAD_KEY] = previous end