lib/rubocop/cop/style/expand_path_arguments.rb in rubocop-0.72.0 vs lib/rubocop/cop/style/expand_path_arguments.rb in rubocop-0.73.0

- old
+ new

@@ -49,24 +49,24 @@ '`Pathname(__FILE__).parent.expand_path`.' PATHNAME_NEW_MSG = 'Use `Pathname.new(__dir__).expand_path` ' \ 'instead of ' \ '`Pathname.new(__FILE__).parent.expand_path`.' - def_node_matcher :file_expand_path, <<-PATTERN + def_node_matcher :file_expand_path, <<~PATTERN (send (const nil? :File) :expand_path $_ $_) PATTERN - def_node_matcher :pathname_parent_expand_path, <<-PATTERN + def_node_matcher :pathname_parent_expand_path, <<~PATTERN (send (send (send nil? :Pathname $_) :parent) :expand_path) PATTERN - def_node_matcher :pathname_new_parent_expand_path, <<-PATTERN + def_node_matcher :pathname_new_parent_expand_path, <<~PATTERN (send (send (send (const nil? :Pathname) :new $_) :parent) :expand_path)