class RuboCop::Cop::Layout::AccessModifierIndentation
def check_modifier(send_node, class_start_col)
def check_modifier(send_node, class_start_col) access_modifier_start_col = send_node.source_range.column offset = access_modifier_start_col - class_start_col @column_delta = expected_indent_offset - offset if @column_delta.zero? correct_style_detected else add_offense(send_node) do if offset == unexpected_indent_offset opposite_style_detected else unrecognized_style_detected end end end end