Sha256: 7146b7435ba3a7f1bfdf4558cc3cc9ff19cc5aeb1504290c667e53a1323024c0

Contents?: true

Size: 383 Bytes

Versions: 3

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

module Expire
  # Ignores all messages expect #error and report nothing.
  # When error is received the message is printed to STDOUT.
  class ReportNull
    def error(message)
      puts message
    end

    def before_all(_); end

    def after_all(_); end

    def on_keep(_); end

    def before_purge(_); end

    def after_purge(_); end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
expire-0.2.2 lib/expire/report_null.rb
expire-0.2.1 lib/expire/report_null.rb
expire-0.2.0 lib/expire/report_null.rb