method
display_flow_item
v1_8_6_287 -
Show latest stable
- Class:
RI::TextFormatter
display_flow_item(item, prefix=@indent)public
No documentation available.
# File lib/rdoc/ri/ri_formatter.rb, line 154
def display_flow_item(item, prefix=@indent)
case item
when SM::Flow::P, SM::Flow::LI
wrap(conv_html(item.body), prefix)
blankline
when SM::Flow::LIST
display_list(item)
when SM::Flow::VERB
display_verbatim_flow_item(item, @indent)
when SM::Flow::H
display_heading(conv_html(item.text), item.level, @indent)
when SM::Flow::RULE
draw_line
else
fail "Unknown flow element: #{item.class}"
end
end