Sha256: fc3065c37636bc78c4bb22f113662fd9547456da7f144dcaf138cd0f7fa06eaf

Contents?: true

Size: 354 Bytes

Versions: 7

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  module Behavior
    module Silencing
      extend Support::Extension

      apply_extension do
        class_state :silencers, default: []
      end

      class_methods do
        def silence(&block)
          @silencers << block
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pakyow-core-1.0.6 lib/pakyow/behavior/silencing.rb
pakyow-core-1.0.5 lib/pakyow/behavior/silencing.rb
pakyow-core-1.0.4 lib/pakyow/behavior/silencing.rb
pakyow-core-1.0.3 lib/pakyow/behavior/silencing.rb
pakyow-core-1.0.2 lib/pakyow/behavior/silencing.rb
pakyow-core-1.0.1 lib/pakyow/behavior/silencing.rb
pakyow-core-1.0.0 lib/pakyow/behavior/silencing.rb