Method: Rote::Filters::TOC#initialize

Defined in:
lib/rote/filters/toc.rb

#initialize(tags_re = /h\d+/, attrs = {}) ⇒ TOC

Returns a new instance of TOC.



47
48
49
50
51
# File 'lib/rote/filters/toc.rb', line 47

def initialize(tags_re = /h\d+/, attrs = {})
  @tags_re = tags_re
  @attrs = attrs
  @headings = []
end