Sha256: c03f7d847be05a3f322c2e900d01a7d36123a2152394d64178cd3d5364b96db4
Contents?: true
Size: 417 Bytes
Versions: 18
Compression:
Stored size: 417 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongo class Monitoring # #subscribers writes to the subscribers even when reading them, # confusing the tests. # This method returns only events with populated subscribers. def present_subscribers subs = {} subscribers.each do |k, v| unless v.empty? subs[k] = v end end subs end end end
Version data entries
18 entries across 18 versions & 1 rubygems