# File lib/structured_warnings/warner.rb, line 8 def format(warning, message, stack) frame = stack.shift # This file contains the backwards compatibility code for Ruby 2.3 and # lower, let's skip it frame = stack.shift if frame.include? 'lib/structured_warnings/kernel.rb' "#{frame} : #{message} (#{warning})" end