Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.
accept_list_item_end(list_item)public
Finishes consumption of list_item
# File lib/rdoc/markup/to_rdoc.rb, line 118
def accept_list_item_end list_item
width = case @list_type.last
when :BULLET then
2
when :NOTE, :LABEL then
if @prefix then
@res << @prefix.strip
@prefix = nil
end
@res << "\n"
2
else
bullet = @list_index.last.to_s
@list_index[-1] = @list_index.last.succ
bullet.length + 2
end
@indent -= width
end Related methods
- Instance methods
- accept_blank_line
- accept_block_quote
- accept_heading
- accept_indented_paragraph
- accept_list_end
- accept_list_item_end
- accept_list_item_start
- accept_list_start
- accept_paragraph
- accept_raw
- accept_rule
- accept_verbatim
- attributes
- end_accepting
- handle_special_HARD_BREAK
- handle_special_SUPPRESSED_CROSSREF
- init_tags
- start_accepting
- use_prefix
- wrap
- Class methods
- new