class Tocer::Rake::Register

Registers Rake tasks for use.

def self.call = new.call

def self.call = new.call

def call

def call
  desc "Update/Insert Table of Contents"
  task :toc, %i[label patterns] do |_task, arguments|
    runner.call configuration.merge(arguments.to_h)
  end
end

def initialize configuration = Container[:configuration], runner: Runner.new

def initialize configuration = Container[:configuration], runner: Runner.new
  @configuration = configuration
  @runner = runner
end