class Airbrake::CodeHunk
def get_lines(file, start_line, end_line)
def get_lines(file, start_line, end_line) return unless (cached_file = get_from_cache(file)) lines = {} cached_file.with_index(1) do |l, i| next if i < start_line break if i > end_line lines[i] = l[0...MAX_LINE_LEN].rstrip end lines end