Method: WebMock::Util::HashCounter#put
- Defined in:
- lib/webmock/util/hash_counter.rb
#put(key, num = 1) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/webmock/util/hash_counter.rb', line 17 def put(key, num=1) @lock.synchronize do hash[key] += num @order[key] = @max += 1 end end |