Sha256: 636065158f6f62389e76f4463e79f84f9fe860802f349368336ff9467cbc14cf
Contents?: true
Size: 388 Bytes
Versions: 57
Compression:
Stored size: 388 Bytes
Contents
module Spyke class ScopeRegistry extend ActiveSupport::PerThreadRegistry def initialize @registry = Hash.new { |hash, key| hash[key] = {} } end def value_for(scope_type, variable_name) @registry[scope_type][variable_name] end def set_value_for(scope_type, variable_name, value) @registry[scope_type][variable_name] = value end end end
Version data entries
57 entries across 57 versions & 1 rubygems