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 ⇒ Object
-
#initialize(writer: Writer.new) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/tocer/runner.rb', line 17 def call settings.root_dir .files(%({#{settings.patterns.join ","}})) .each do |path| io.puts " #{path}" writer.call path, label: settings.label end end |