Class: Thread
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/core_ext/thread.rb |
Instance Method Summary
Instance Method Details
#freeze
[ GitHub ]# File 'activesupport/lib/active_support/core_ext/thread.rb', line 72
def freeze _locals.freeze super end
#thread_variable?(key) ⇒ Boolean
# File 'activesupport/lib/active_support/core_ext/thread.rb', line 61
def thread_variable?(key) _locals.has_key?(key.to_sym) end
#thread_variable_get(key)
[ GitHub ]# File 'activesupport/lib/active_support/core_ext/thread.rb', line 25
def thread_variable_get(key) _locals[key.to_sym] end
#thread_variable_set(key, value)
[ GitHub ]# File 'activesupport/lib/active_support/core_ext/thread.rb', line 32
def thread_variable_set(key, value) _locals[key.to_sym] = value end
#thread_variables
[ GitHub ]# File 'activesupport/lib/active_support/core_ext/thread.rb', line 47
def thread_variables _locals.keys end