Sha256: e468e7af34873b92fd7e8ec8b4857fe8b82fb73a1f67e9517fc39519deca2f0c

Contents?: true

Size: 163 Bytes

Versions: 11

Compression:

Stored size: 163 Bytes

Contents

module Nanoc::Telemetry
  class Counter
    attr_reader :value

    def initialize
      @value = 0
    end

    def increment
      @value += 1
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
nanoc-4.7.9 lib/nanoc/telemetry/counter.rb
nanoc-4.7.8 lib/nanoc/telemetry/counter.rb
nanoc-4.7.7 lib/nanoc/telemetry/counter.rb
nanoc-4.7.6 lib/nanoc/telemetry/counter.rb
nanoc-4.7.5 lib/nanoc/telemetry/counter.rb
nanoc-4.7.4 lib/nanoc/telemetry/counter.rb
nanoc-4.7.3 lib/nanoc/telemetry/counter.rb
nanoc-4.7.2 lib/nanoc/telemetry/counter.rb
nanoc-4.7.1 lib/nanoc/telemetry/counter.rb
nanoc-4.7.0 lib/nanoc/telemetry/counter.rb
nanoc-4.6.4 lib/nanoc/telemetry/counter.rb