*args |
Arguments to pass to the block. |
&block |
The template block to call. |
The output of the block. |
Capture being used in a .html.erb page:
<% @foo = capture do %> <p>Some Foo content!</p> <% end %>
:api: private
# File lib/merb-core/controller/template.rb, line 232 def capture_erb(*args, &block) _old_buf, @_erb_buf = @_erb_buf, "" block.call(*args) ret = @_erb_buf @_erb_buf = _old_buf ret end
Generated with the Darkfish Rdoc Generator 2.