class ERBTest::BlockTestCase
Public Instance Methods
block_helper(str, rest)
click to toggle source
# File actionview/test/template/erb/helper.rb, line 22 def block_helper(str, rest) "<%= #{str} do %>#{rest}<% end %>" end
render_content(start, inside)
click to toggle source
# File actionview/test/template/erb/helper.rb, line 17 def render_content(start, inside) template = block_helper(start, inside) ActionView::Template::Handlers::ERB.erb_implementation.new(template).evaluate(ViewContext.new) end