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



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

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



275
276
277
278
279
280
281
282
# File 'lib/hanna.rb', line 275

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