Method: Muwu::RenderHtmlPartial::TextItem#render

Defined in:
lib/muwu/render_html_partial/render_text_item.rb

#renderObject



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/muwu/render_html_partial/render_text_item.rb', line 36

def render
  @destination.padding_vertical(1) do
    write_tag_section_open
    render_section_number
    render_heading
    render_text
    if (@is_parent_heading == true) && (@subsections_are_distinct == true)
      render_end_links
      render_sections
    elsif (@is_parent_heading == true) && (@subsections_are_distinct == false)
      render_sections
      render_end_links
    elsif (@is_parent_heading == false)
      render_end_links
    end
    write_tag_section_close
  end
end