class Tablesalt::ThreadAccessor::ScopedAccessor
Attributes
scope[R]
Public Class Methods
new(scope)
click to toggle source
# File lib/tablesalt/thread_accessor/scoped_accessor.rb, line 8 def initialize(scope) @scope = scope extend ActiveSupport::Concern extend Management include ThreadAccessor const_set :THREAD_ACCESSOR_STORE_NAMESPACE, scope end
Public Instance Methods
inspect()
click to toggle source
# File lib/tablesalt/thread_accessor/scoped_accessor.rb, line 22 def inspect "#<#{name}>" end
name()
click to toggle source
# File lib/tablesalt/thread_accessor/scoped_accessor.rb, line 18 def name "#{self.class}:#{scope}" end