lib/mrcr/cache.rb in mrcr-cache-0.1.2 vs lib/mrcr/cache.rb in mrcr-cache-0.1.3

- old
+ new

@@ -50,11 +50,11 @@ cache.fetch_or_store(key.hash, &block) end # Caches a result of the block evaluation # - # @param [Object] args Hashable object + # @param [Object] key Hashable object # @param [Object] default Default value # @yield An arbitrary block # # @note beware Proc instance hashes are not equal, i.e. -> { 1 }.hash != -> { 1 }.hash, # this means you shouldn't pass Procs in args unless you're sure @@ -67,10 +67,10 @@ # Instance methods module Methods # Delegates call to the class-level method # - # @param [Array<Object>] key Hashable object + # @param [Object] key Hashable object # @yield An arbitrary block # # @return [Object] block's return value def fetch_or_store(key, &block) self.class.fetch_or_store(key, &block)