D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
doc
/
nokogiri-1.8.1
/
ri
/
Nokogiri
/
XML
/
Builder
/
Filename :
with-c.ri
back
Copy
U:RDoc::AnyMethod[iI" with:EFI"!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".doc = Nokogiri::XML(open('somedoc.xml')) ;TI">Nokogiri::XML::Builder.with(doc.at('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