class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter
def accesses?(rhs, lhs)
`lhs` is an assignment method call like `obj.attr=` or `ary[idx]=`.
def accesses?(rhs, lhs) if lhs.method?(:[]=) matching_calls(rhs, lhs.receiver, :[]).any? do |args| args == lhs.arguments end else access_method = lhs.method_name.to_s.chop.to_sym matching_calls(rhs, lhs.receiver, access_method).any? end end