Sha256: 7e28ccc1f224c88dfe93b03e58ced261818a47e2cda5bab525f1461efe15a91c
Contents?: true
Size: 356 Bytes
Versions: 20
Compression:
Stored size: 356 Bytes
Contents
# frozen_string_literal: true module Nanoc::Telemetry class Registry def initialize @counters = {} @summaries = {} end def counter(name) @counters.fetch(name) { @counters[name] = LabelledCounter.new } end def summary(name) @summaries.fetch(name) { @summaries[name] = LabelledSummary.new } end end end
Version data entries
20 entries across 20 versions & 1 rubygems