class ConfigManager::ToggleIdentityMap
Public Class Methods
id_map()
click to toggle source
# File lib/config_manager/toggle_identity_map.rb, line 10 def id_map @thread_map[Thread.current.object_id] ||= {} end
reset_id_map()
click to toggle source
# File lib/config_manager/toggle_identity_map.rb, line 6 def reset_id_map @thread_map[Thread.current.object_id] = {} end
value(key) { || ... }
click to toggle source
# File lib/config_manager/toggle_identity_map.rb, line 14 def value(key) id_map[key] ||= yield end