Class: Tocer::Rake::Register
- Inherits:
-
Object
- Object
- Tocer::Rake::Register
- Includes:
- Rake::DSL
- Defined in:
- lib/tocer/rake/register.rb
Overview
Registers Rake tasks for use.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(runner: Runner.new) ⇒ Register
constructor
A new instance of Register.
Constructor Details
Class Method Details
.call ⇒ Object
16 |
# File 'lib/tocer/rake/register.rb', line 16 def self.call = new.call |
Instance Method Details
#call ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/tocer/rake/register.rb', line 23 def call desc "Update/Insert Table of Contents" task :toc, %i[label patterns] do |_task, arguments| settings.merge! arguments runner.call end end |