# File lib/action_view/helpers/capture_helper.rb, line 56 def capture(*args, &block) # execute the block begin buffer = eval("_erbout", block.binding) rescue buffer = nil end if buffer.nil? capture_block(*args, &block) else capture_erb_with_buffer(buffer, *args, &block) end end