SamSaffron / lru_redux

An efficient optionally thread safe LRU Cache
MIT License
285 stars 20 forks source link

Hash#reverse is undefined #1

Closed gstaubli closed 11 years ago

gstaubli commented 11 years ago
cache.each {|k,v| p "#{k} #{v}"}
NoMethodError: undefined method `reverse' for {:b=>"2"}:Hash

An alternative would be: Hash[@data.to_a.reverse]

Ruby Version: 2.0.0p247

SamSaffron commented 11 years ago

Fixed an pushed gem 0.8.1 , thanks heaps for reporting