JezK
Edit File: child%21-i.ri
U:RDoc::AnyMethod[iI"child!:EFI"Jbuilder#child!;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"PTurns the current element into an array and yields a builder to add a hash.;To:RDoc::Markup::BlankLine o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [I"json.comments do ;TI", json.child! { json.content "hello" } ;TI", json.child! { json.content "world" } ;TI" end ;TI" ;TI"G{ "comments": [ { "content": "hello" }, { "content": "world" } ]} ;T:@format0o; ; [I"<More commonly, you'd use the combined iterator, though:;T@o;; [I"0json.comments(@post.comments) do |comment| ;TI". json.content comment.formatted_content ;TI"end;T; 0: @fileI"lib/jbuilder.rb;T:0@omit_headings_from_table_of_contents_below00I" self;T[ I"();T@"FI" Jbuilder;TcRDoc::NormalClass00