File: //usr/local/rvm/gems/default/doc/nokogiri-1.12.5-x86_64-linux/ri/Nokogiri/XML/Builder/with-c.ri
U:RDoc::AnyMethod[iI" with:ETI"!Nokogiri::XML::Builder::with;TT:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [ I"JCreate a builder with an existing root object. This is for use when ;TI"Gyou have an existing document that you would like to augment with ;TI"Gbuilder methods. The builder context created will start with the ;TI"given +root+ node.;To:RDoc::Markup::BlankLine o;
; [I"For example:;T@o:RDoc::Markup::Verbatim; [
I"3doc = Nokogiri::XML(File.read('somedoc.xml'))
;TI"BNokogiri::XML::Builder.with(doc.at_css('some_tag')) do |xml|
;TI"1 # ... Use normal builder methods here ...
;TI"< xml.awesome # add the "awesome" tag below "some_tag"
;TI"end;T:@format0:
@fileI" lib/nokogiri/xml/builder.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(root, &block);T@FI"Builder;TcRDoc::NormalClass00