lib/rubocop/cop/lint/ambiguous_range.rb in rubocop-1.22.1 vs lib/rubocop/cop/lint/ambiguous_range.rb in rubocop-1.22.2
- old
+ new
@@ -80,10 +80,10 @@
end
def acceptable?(node)
node.begin_type? ||
node.basic_literal? ||
- node.variable? || node.const_type? ||
+ node.variable? || node.const_type? || node.self_type? ||
(node.call_type? && acceptable_call?(node))
end
def acceptable_call?(node)
return true if node.unary_operation?