JezK
Edit File: cache_root%21-i.ri
U:RDoc::AnyMethod[iI"cache_root!:EFI"!JbuilderTemplate#cache_root!;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"oCaches the json structure at the root using a string rather than the hash structure. This is considerably ;TI"cfaster, but the drawback is that it only works, as the name hints, at the root. So you cannot ;TI"uuse this approach to cache deeper inside the hierarchy, like in partials or such. Continue to use #cache! there.;To:RDoc::Markup::BlankLine o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [ I"!json.cache_root! @person do ;TI"* json.extract! @person, :name, :age ;TI" end ;TI" ;TI"I# json.extra 'This will not work either, the root must be exclusive';T:@format0: @fileI"&lib/jbuilder/jbuilder_template.rb;T:0@omit_headings_from_table_of_contents_below00I"