Class Index [+]

Quicksearch

Merb::Template::Erubis::Mixin

Public Instance Methods

capture_erb(*args, &block) click to toggle source

Parameters

*args

Arguments to pass to the block.

&block

The template block to call.

Returns

String

The output of the block.

Examples

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
232:       def capture_erb(*args, &block)
233:         _old_buf, @_erb_buf = @_erb_buf, ""
234:         block.call(*args)
235:         ret = @_erb_buf
236:         @_erb_buf = _old_buf
237:         ret
238:       end
concat_erb(string, binding) click to toggle source

:api: private

     # File lib/merb-core/controller/template.rb, line 241
241:       def concat_erb(string, binding)
242:         @_erb_buf << string
243:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.