module Tombstone
Constants
- VERSION
Public Class Methods
logger()
click to toggle source
# File lib/tombstone.rb, line 6 def self.logger @logger ||= Logger.new(STDERR) end
place(date_string = '')
click to toggle source
# File lib/tombstone.rb, line 10 def place(date_string = '') backtrace = caller_locations(1,1)[0] message = "Tombstone: #{date_string} - #{backtrace.label} - #{backtrace.absolute_path} Line #: #{backtrace.lineno}" logger.warn message # Outputs the above message to the console, colored red puts "\e[31m#{message}\e[0m" end
Private Instance Methods
place(date_string = '')
click to toggle source
# File lib/tombstone.rb, line 10 def place(date_string = '') backtrace = caller_locations(1,1)[0] message = "Tombstone: #{date_string} - #{backtrace.label} - #{backtrace.absolute_path} Line #: #{backtrace.lineno}" logger.warn message # Outputs the above message to the console, colored red puts "\e[31m#{message}\e[0m" end