class Html::List

Public Class Methods

new(*elems) click to toggle source
Calls superclass method Html::Elem::new
# File misc/txt2html.rb, line 253
def initialize(*elems)
        super('ul')
        elems.each { |e| add_line(e) }
end

Public Instance Methods

add_line(line) click to toggle source
# File misc/txt2html.rb, line 258
def add_line(line)
        add(Elem.new('li').add(line))
        self
end