class ActionView::Base

Public Instance Methods

output_buffer()
Also aliased as: output_buffer_without_haml
output_buffer=(new_buffer)
output_buffer_with_haml() click to toggle source
# File lib/haml/helpers/action_view_mods.rb, line 17
def output_buffer_with_haml
  return haml_buffer.buffer if is_haml?
  output_buffer_without_haml
end
Also aliased as: output_buffer
output_buffer_without_haml()
Alias for: output_buffer
render(*args, &block)
Also aliased as: render_without_haml
Alias for: render_with_haml
render_with_haml(*args, &block) click to toggle source
# File lib/haml/helpers/action_view_mods.rb, line 3
def render_with_haml(*args, &block)
  options = args.first

  # If render :layout is used with a block, it concats rather than returning
  # a string so we need it to keep thinking it's Haml until it hits the
  # sub-render.
  if is_haml? && !(options.is_a?(Hash) && options[:layout] && block_given?)
    return non_haml { render_without_haml(*args, &block) }
  end
  render_without_haml(*args, &block)
end
Also aliased as: render
render_without_haml(*args, &block)
Alias for: render
set_output_buffer_with_haml(new_buffer) click to toggle source
# File lib/haml/helpers/action_view_mods.rb, line 24
def set_output_buffer_with_haml(new_buffer)
  if is_haml?
    if Haml::Util.rails_xss_safe? && new_buffer.is_a?(ActiveSupport::SafeBuffer)
      new_buffer = String.new(new_buffer)
    end
    haml_buffer.buffer = new_buffer
  else
    set_output_buffer_without_haml new_buffer
  end
end
Also aliased as: output_buffer=
set_output_buffer_without_haml(new_buffer)
Alias for: output_buffer=