Sha256: 641c3ed14b4953a1627864219080bfe7abdbe01fd70902480151022258d5e17e
Contents?: true
Size: 478 Bytes
Versions: 6
Compression:
Stored size: 478 Bytes
Contents
module Trailblazer class Activity module Deprecate module_function def warn(caller_location, message) location = caller_location ? location_for(caller_location) : nil warning = [location, message].compact.join(" ") Kernel.warn %([Trailblazer] #{warning}\n) end def location_for(caller_location) line_no = caller_location.lineno %(#{caller_location.absolute_path}:#{line_no}) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems