Parent

Methods

Files

WebMock::Util::HashCounter

Attributes

hash[RW]

Public Class Methods

new() click to toggle source
   # File lib/webmock/util/hash_counter.rb, line 7
7:       def initialize
8:         self.hash = {}
9:       end

Public Instance Methods

get(key) click to toggle source
    # File lib/webmock/util/hash_counter.rb, line 13
13:       def get key
14:         hash[key] || 0
15:       end
put(key, num=1) click to toggle source
    # File lib/webmock/util/hash_counter.rb, line 10
10:       def put key, num=1
11:         hash[key] = (hash[key] || 0) + num
12:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.