Class: Rubysmith::Extensions::Tocer

Inherits:
Object
  • Object
show all
Defined in:
lib/rubysmith/extensions/tocer.rb

Overview

Ensures project skeleton documentation has table of content.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration, client: ::Tocer::Runner.new) ⇒ Tocer

Returns a new instance of Tocer.



11
12
13
14
# File 'lib/rubysmith/extensions/tocer.rb', line 11

def initialize configuration, client: ::Tocer::Runner.new
  @configuration = configuration
  @client = client
end

Class Method Details

.callObject



9
# File 'lib/rubysmith/extensions/tocer.rb', line 9

def self.call(...) = new(...).call

Instance Method Details

#callObject



16
17
18
19
# File 'lib/rubysmith/extensions/tocer.rb', line 16

def call
  client.call ::Tocer::Container[:configuration] if configuration.build_readme
  configuration
end