module WhatTheGem::Stats::Definitions

Constants

FIFTY_PLUS
HAS_REACTION
T

Public Class Methods

meters() click to toggle source
# File lib/whatthegem/stats/definitions.rb, line 11
def self.meters
  @meters ||= []
end
metric(name, *path, thresholds: nil, &block) click to toggle source
# File lib/whatthegem/stats/definitions.rb, line 15
def self.metric(name, *path, thresholds: nil, &block)
  meters << Meter.new(name, path, thresholds, block || :itself.to_proc)
end