class RuboCop::Cop::Lint::AmbiguousRange
def acceptable_call?(node)
def acceptable_call?(node) return true if node.unary_operation? # Require parentheses when making a method call on a literal # to avoid the ambiguity of `1..2.to_a`. return false if node.receiver&.basic_literal? require_parentheses_for_method_chain? || node.receiver.nil? end