JezK
Edit File: insert_section_after-i.ri
U:RDoc::AnyMethod[iI"insert_section_after:EFI"(Prawn::Outline#insert_section_after;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JInserts an outline section to the outline tree (see outline#define). ;TI"LAlthough you will probably choose to exclusively use outline#define so ;TI"Ithat your outline tree is contained and easy to manage, this method ;TI"Ngives you the option to insert sections to the outline tree at any point ;TI"Pduring document generation. Unlike outline.add_section, this method allows ;TI"Syou to enter a section after any other item at any level in the outline tree. ;TI"SCurrently the only way to locate the place of entry is with the title for the ;TI"Mitem. If your title names are not unique consider using define_outline. ;TI".The method takes the following arguments:;To:RDoc::Markup::Verbatim; [I"Ktitle: the title of other section or page to insert new section after ;TI"Eblock: uses the same DSL syntax as outline#define, for example: ;TI" ;TI"go_to_page 2 ;TI"start_new_page ;TI"text "Inserted Page" ;TI"update_outline do ;TI"2 insert_section_after :title => 'Page 2' do ;TI"E page :destination => page_number, :title => "Inserted Page" ;TI" end ;TI"end;T:@format0: @fileI"lib/prawn/outline.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(title, &block);T@#FI"Outline;FcRDoc::NormalClass00