class Expire::ReportBase

Base class for Reporters

Attributes

receiver[R]

Public Class Methods

new(receiver: $stdout) click to toggle source
# File lib/expire/report_base.rb, line 9
def initialize(receiver: $stdout)
  @receiver = receiver
end

Public Instance Methods

error(message) click to toggle source
# File lib/expire/report_base.rb, line 15
def error(message)
  receiver.puts(pastel.red(message))
end
pastel() click to toggle source
# File lib/expire/report_base.rb, line 19
def pastel
  @pastel ||= ::Pastel.new
end