lib/triad.rb in triad-0.1.2 vs lib/triad.rb in triad-0.1.3

- old
+ new

@@ -1,6 +1,7 @@ require "triad/version" +require 'thread_safe' class Triad include Enumerable class InvalidAddition < StandardError; end @@ -8,10 +9,10 @@ class DescriptorNotPresent < StandardError; end class KeyNotPresent < StandardError; end # stored as {key => ['Descriptor', value]} def initialize(*args) - @storage = {} + @storage = ThreadSafe::Hash.new end attr_reader :storage private :storage def keys(arg=:__no_argument_given__)