Sha256: 98a18385cbaab031b736683b4e82c3383facb9d35b18c6ca65bc96a34bd29e34
Contents?: true
Size: 425 Bytes
Versions: 3
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true # For some unknown reason Pastel is not autoloaded by Zeitwerk require 'pastel' module Expire # Base class for Reporters class ReportBase < ReportNull def initialize(receiver: $stdout) @receiver = receiver end attr_reader :receiver def error(message) receiver.puts(pastel.red(message)) end def pastel @pastel ||= ::Pastel.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
expire-0.2.2 | lib/expire/report_base.rb |
expire-0.2.1 | lib/expire/report_base.rb |
expire-0.2.0 | lib/expire/report_base.rb |