Class: RDoc::Rouge::TOC

Inherits:
Markup::ToTableOfContents
  • Object
show all
Defined in:
lib/rdoc/rouge/toc.rb

Class Method Summary collapse

Class Method Details

.to_list(toc) ⇒ Object



5
6
7
# File 'lib/rdoc/rouge/toc.rb', line 5

def to_list toc
  toc.map { |t| "<li><a href='##{t.aref}'>#{t.plain_html}</a></li>" }.join
end