# File lib/action_view/helpers/capture_helper.rb, line 33 def capture(*args, &block) # execute the block begin buffer = eval(ActionView::Base.erb_variable, block.binding) rescue buffer = nil end if buffer.nil? capture_block(*args, &block).to_s else capture_erb_with_buffer(buffer, *args, &block).to_s end end