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_name == :[]= matching_calls(rhs, lhs.receiver, :[]).any? do |args| args == lhs.method_args end else access_method = lhs.method_name.to_s.chop.to_sym matching_calls(rhs, lhs.receiver, access_method).any? end end