Method: RDoc::Markup::ToTtOnly#accept_list_item_start

Defined in:
lib/rdoc/markup/to_tt_only.rb

#accept_list_item_start(list_item) ⇒ Object

Prepares the visitor for consuming list_item



51
52
53
54
55
56
57
58
# File 'lib/rdoc/markup/to_tt_only.rb', line 51

def accept_list_item_start list_item
  case @list_type.last
  when :NOTE, :LABEL then
    Array(list_item.label).map do |label|
      tt_sections label
    end.flatten
  end
end