Sha256: 1a9e224af3880810803252d78fd999493c1a4f90e31ca152485cf24f309163d4
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 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) caller_location = caller_location line_no = caller_location.lineno %{#{caller_location.absolute_path}:#{line_no}} end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trailblazer-activity-0.15.1 | lib/trailblazer/activity/deprecate.rb |
trailblazer-activity-0.15.0 | lib/trailblazer/activity/deprecate.rb |