Methods

Mongo::ThreadLocalVariableManager

Public Instance Methods

thread_local() click to toggle source
# File lib/mongo/util/thread_local_variable_manager.rb, line 4
def thread_local
  Thread.current[:mongo_thread_locals] ||= Hash.new do |hash, key|
    hash[key] = Hash.new unless hash.key? key
    hash[key]
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.