Object
@private
As an optimization, this could access the hash directly on VMs with a global interpreter lock (like MRI)
# File lib/prawn/utilities.rb, line 21 def initialize @cache = {} @mutex = Mutex.new end
# File lib/prawn/utilities.rb, line 25 def [](key) @mutex.synchronize { @cache[key] } end
# File lib/prawn/utilities.rb, line 28 def []=(key,value) @mutex.synchronize { @cache[key] = value } end
[Validate]
Generated with the Darkfish Rdoc Generator 2.