File: basic_counter.rb

package info (click to toggle)
ruby-ddmetrics 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240 kB
  • sloc: ruby: 791; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module DDMetrics
  class BasicCounter
    attr_reader :value

    def initialize
      @value = 0
    end

    def increment
      @value += 1
    end
  end
end