Class: Mdtoc::Markdown::HeaderWithFragment
- Defined in:
- lib/mdtoc/markdown/header.rb
Instance Attribute Summary
Attributes inherited from Header
Instance Method Summary collapse
-
#initialize(depth, label, url, generator:) ⇒ HeaderWithFragment
constructor
A new instance of HeaderWithFragment.
Methods inherited from Header
Constructor Details
#initialize(depth, label, url, generator:) ⇒ HeaderWithFragment
Returns a new instance of HeaderWithFragment.
52 53 54 55 |
# File 'lib/mdtoc/markdown/header.rb', line 52 def initialize(depth, label, url, generator:) super(depth, label, url) @url += "##{generator.generate(@label)}" end |