# File lib/pry/code.rb, line 199 def take_lines(start_line, num_lines) if start_line >= 0 start_idx = @lines.index { |l| l.last >= start_line } || @lines.length else start_idx = @lines.length + start_line end alter do @lines = @lines.slice(start_idx, num_lines) end end