class Mdtoc::Markdown::HeaderWithFragment

Public Class Methods

new(depth, label, url) click to toggle source
Calls superclass method Mdtoc::Markdown::Header::new
# File lib/mdtoc/markdown/header.rb, line 42
def initialize(depth, label, url)
  super
  @url += "##{@label.downcase.tr(' ', '-').gsub(/[^\w\-]/, '')}"
end