Sha256: 1c713e8fe94e02b8e09ffb0e78dad883ab94ea0665920ecfdec89fa8f447963b
Contents?: true
Size: 308 Bytes
Versions: 5
Compression:
Stored size: 308 Bytes
Contents
# frozen_string_literal: true module Masks # Publishes events using +ActiveSupport::Notifications+ class Event class << self def emit(name, **opts, &block) ActiveSupport::Notifications.instrument("masks.#{name}", **opts) do block.call end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems