class Diff::LCS::Hunk

def context_range(mode, op = ',') # rubocop:disable Naming/UncommunicativeMethodParamName

rubocop:disable Naming/UncommunicativeMethodParamName
range has only one item in it. Otherwise, it's 'start,end'
Generate a range of item numbers to print. Only print 1 number if the
def context_range(mode, op = ',') # rubocop:disable Naming/UncommunicativeMethodParamName
  case mode
  when :old
    s, e = (@start_old + 1), (@end_old + 1)
  when :new
    s, e = (@start_new + 1), (@end_new + 1)
  end
  s < e ? "#{s}#{op}#{e}" : e.to_s
end