lib/directory_searcher.rb in markdown_exec-1.8.5 vs lib/directory_searcher.rb in markdown_exec-1.8.6

- old
+ new

@@ -2,10 +2,11 @@ # frozen_string_literal: true # encoding=utf-8 require 'find' +require_relative 'constants' def format_and_highlight_hash( data, highlight_color_sym: :exception_color_detail, plain_color_sym: :menu_chrome_color, @@ -85,15 +86,9 @@ highlight.include?(dep_name) ? highlight_color_sym : plain_color_sym)}: #{item}#{line_postfix}" end || [] "#{line_prefix}#{string_send_color(label, highlight_color_sym)}#{line_postfix}\n" + formatted_deps.join("\n") -end - -IndexedLine = Struct.new(:index, :line) do - def to_s - line - end end # Class DirectorySearcher # This class provides methods to search for a specified pattern # in directory names, file names, and contents of files within given paths.