JezK
Edit File: extensions-c.ri
U:RDoc::AnyMethod[iI"extensions:EFI",Prawn::Text::Formatted::Box::extensions;FT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JExample (see Prawn::Text::Core::Formatted::Wrap for what is required ;TI"Eof the wrap method if you want to override the default wrapping ;TI"algorithm):;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"module MyWrap ;TI" ;TI" def wrap(array) ;TI"J initialize_wrap([{ :text => 'all your base are belong to us' }]) ;TI"6 @line_wrap.wrap_line(:document => @document, ;TI"4 :kerning => @kerning, ;TI"/ :width => 10000, ;TI"6 :arranger => @arranger) ;TI"0 fragment = @arranger.retrieve_fragment ;TI"D format_and_draw_fragment(fragment, 0, @line_wrap.width, 0) ;TI" [] ;TI" end ;TI" ;TI" end ;TI" ;TI"6Prawn::Text::Formatted::Box.extensions << MyWrap ;TI" ;TI":box = Prawn::Text::Formatted::Box.new('hello world') ;TI":box.render('why can't I print anything other than' + ;TI"4 '"all your base are belong to us"?');T:@format0: @fileI"$lib/prawn/text/formatted/box.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@'FI"Box;FcRDoc::NormalClass00