U:RDoc::AnyMethod[iI"capture:EFI"/ActionView::Helpers::CaptureHelper#capture;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"HThe capture method allows you to extract part of a template into a ;TI"Svariable. You can then use this variable anywhere in your templates or layout.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading:
leveli	:	textI"Examples;To;
;	[I"7The capture method can be used in ERb templates...;T@o:RDoc::Markup::Verbatim;	[	I""<% @greeting = capture do %>
;TI"?  Welcome to my shiny new web page!  The date and time is
;TI"  <%= Time.now %>
;TI"<% end %>
;T:@format0o;
;	[I"%...and Builder (RXML) templates.;T@o;;	[I"@timestamp = capture do
;TI"/  "The current timestamp is #{Time.now}."
;TI"	end
;T;0o;
;	[I"@You can then use that variable anywhere else.  For example:;T@o;;	[
I"<html>
;TI"2<head><title><%= @greeting %></title></head>
;TI"<body>
;TI"<b><%= @greeting %></b>
;TI"</body></html>;T;0:
@fileI".lib/action_view/helpers/capture_helper.rb;T:0@omit_headings_from_table_of_contents_below00I"
*args;T[ I"(*args);T@-FI"CaptureHelper;FcRDoc::NormalModule0