Module: GrepInteractors
- Defined in:
- lib/grep_interactors.rb,
lib/grep_interactors/cli.rb,
lib/grep_interactors/parser.rb,
lib/grep_interactors/version.rb,
lib/grep_interactors/grep_in_paths.rb
Defined Under Namespace
Classes: Cli, GrepInPaths, Parser
Constant Summary
collapse
- Import =
Dry::AutoInject(container)
- VERSION =
"0.1.6"
Class Method Summary
collapse
Class Method Details
.call(interactors_path, file_path, query) ⇒ Object
6
7
8
9
10
|
# File 'lib/grep_interactors.rb', line 6
def self.call(interactors_path, file_path, query)
file_paths = Parser.new(interactors_path, file_path).file_paths
GrepInPaths.new.call(query, file_paths)
end
|
.container ⇒ Object
12
13
14
|
# File 'lib/grep_interactors.rb', line 12
def self.container
@@container ||= Containers::Base
end
|