Class: Rubysmith::Extensions::Tocer
- Inherits:
-
Object
- Object
- Rubysmith::Extensions::Tocer
- Defined in:
- lib/rubysmith/extensions/tocer.rb
Overview
Ensures project skeleton documentation has table of content.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, client: ::Tocer::Runner.new, record: ::Tocer::Configuration::Model.new) ⇒ Tocer
constructor
A new instance of Tocer.
Constructor Details
#initialize(configuration, client: ::Tocer::Runner.new, record: ::Tocer::Configuration::Model.new) ⇒ Tocer
Returns a new instance of Tocer.
14 15 16 17 18 19 20 |
# File 'lib/rubysmith/extensions/tocer.rb', line 14 def initialize configuration, client: ::Tocer::Runner.new, record: ::Tocer::Configuration::Model.new @configuration = configuration @client = client @record = record end |
Class Method Details
.call ⇒ Object
12 |
# File 'lib/rubysmith/extensions/tocer.rb', line 12 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
22 23 24 25 |
# File 'lib/rubysmith/extensions/tocer.rb', line 22 def call client.call settings if configuration.build_readme configuration end |