module Excom::Plugins::Context::ExcomMethods
Public Instance Methods
context()
click to toggle source
# File lib/excom/plugins/context.rb, line 39 def context Thread.current[:excom_context] end
with_context(ctx) { || ... }
click to toggle source
# File lib/excom/plugins/context.rb, line 31 def with_context(ctx) current, Thread.current[:excom_context] = \ context, context.respond_to?(:merge) ? context.merge(ctx) : ctx yield ensure Thread.current[:excom_context] = current end