class Raf::NumList
Public Instance Methods
apply()
click to toggle source
# File lib/raf2html_element.rb, line 88 def apply str = "<ol>\n" @contents.map do |item| if item == :INDENT str += "<ol>\n" elsif item == :DEDENT str += "</ol>\n" else str += "<li>#{item.apply}</li>\n" end end str += "</ol>\n" str end