Class: Tocer::Runner
- Inherits:
-
Object
- Object
- Tocer::Runner
- Defined in:
- lib/tocer/runner.rb
Overview
Generates/updates Table of Contents for files in root path.
Instance Method Summary collapse
-
#call(configuration) ⇒ Object
:reek:FeatureEnvy.
-
#initialize(writer: Writer.new) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
Instance Method Details
#call(configuration) ⇒ Object
:reek:FeatureEnvy
18 19 20 21 22 23 24 25 |
# File 'lib/tocer/runner.rb', line 18 def call configuration configuration.root_dir .files(%({#{configuration.patterns.join ","}})) .each do |path| kernel.puts " #{path}" writer.call path, label: configuration.label end end |