class RuboCop::Cop::AlignmentCorrector
def calculate_range(expr, line_begin_pos, column_delta)
def calculate_range(expr, line_begin_pos, column_delta) return range_between(line_begin_pos, line_begin_pos) if column_delta.positive? starts_with_space = expr.source_buffer.source[line_begin_pos].start_with?(' ') if starts_with_space range_between(line_begin_pos, line_begin_pos + column_delta.abs) else range_between(line_begin_pos - column_delta.abs, line_begin_pos) end end