Module: RDoc::Generator::Hanna::LabelListTable

Included in:
Markup::ToHtml
Defined in:
lib/hanna.rb

Instance Method Summary collapse

Instance Method Details

#list_end_for(list_type) ⇒ Object



295
296
297
298
299
300
301
302
# File 'lib/hanna.rb', line 295

def list_end_for(list_type)
  case list_type
  when :LABEL, :NOTE then
    "</td></tr>"
  else
    super
  end
end

#list_item_start(list_item, list_type) ⇒ Object



286
287
288
289
290
291
292
293
# File 'lib/hanna.rb', line 286

def list_item_start(list_item, list_type)
  case list_type
  when :LABEL, :NOTE
    "<tr><td class='label'>#{Array(list_item.label).map{|label| to_html(label)}.join("<br />")}</td><td>"
  else
    super
  end
end