Module ActionView::Helpers::CaptureHelper
In: lib/haml/helpers/action_view_mods.rb

Methods

External Aliases

capture -> capture_without_haml
capture_erb_with_buffer -> capture_erb_with_buffer_without_haml

Public Instance methods

capture(*args, &block)

Alias for capture_with_haml

capture(*args, &block)

Alias for capture_with_haml

capture_erb_with_buffer(buffer, *args, &block)

[Source]

    # File lib/haml/helpers/action_view_mods.rb, line 60
60:         def capture_erb_with_buffer_with_haml(buffer, *args, &block)
61:           if is_haml?
62:             capture_haml(*args, &block)
63:           else
64:             capture_erb_with_buffer_without_haml(buffer, *args, &block)
65:           end
66:         end

[Source]

    # File lib/haml/helpers/action_view_mods.rb, line 84
84:         def capture_with_haml(*args, &block)
85:           if Haml::Helpers.block_is_haml?(block)
86:             capture_haml(*args, &block)
87:           else
88:             capture_without_haml(*args, &block)
89:           end
90:         end

[Source]

    # File lib/haml/helpers/action_view_mods.rb, line 45
45:         def capture_with_haml(*args, &block)
46:           # Rails' #capture helper will just return the value of the block
47:           # if it's not actually in the template context,
48:           # as detected by the existance of an _erbout variable.
49:           # We've got to do the same thing for compatibility.
50: 
51:           if is_haml? && block_is_haml?(block)
52:             capture_haml(*args, &block)
53:           else
54:             capture_without_haml(*args, &block)
55:           end
56:         end
capture_without_haml(*args, &block)

Alias for capture

[Validate]