File: null.rb

package info (click to toggle)
ruby-circuitbox 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 140 kB
  • sloc: ruby: 533; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 261 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class Circuitbox
  module Notifier
    class Null
      def notify(_circuit_name, _event); end

      def notify_warning(_circuit_name, _message); end

      def notify_run(_circuit_name)
        yield
      end
    end
  end
end