class Airbrake::CodeHunk

def get_from_cache(file)

def get_from_cache(file)
  Airbrake::FileCache[file] ||= File.foreach(file)
rescue StandardError => ex
  logger.error(
    "#{self.class.name}: can't read code hunk for #{file}: #{ex}",
  )
  nil
end