Sha256: 35ee1f6787eec5c3d405a6c8e895dd699fc60234ec5392253322bbf10a690eca

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

module Industrialist
  class WarningHelper
    def self.warning(message)
      most_recent_caller = caller(2..2).first.split(':')
      file_name = most_recent_caller[0]
      line_number = most_recent_caller[1]
      warn("#{file_name}:#{line_number}: #{message}")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
industrialist-0.4.0 lib/industrialist/warning_helper.rb