Class: ActionView::Base

### Home Classes Methods

### In Files

- lib/haml/helpers/action_view_mods.rb

### Parent

Object

### Methods

- #output_buffer
- #output_buffer=
- #output_buffer_with_haml
- #output_buffer_without_haml
- #render
- #render_with_haml
- #render_without_haml
- #set_output_buffer_with_haml
- #set_output_buffer_without_haml

### Class/Module Index

Quicksearch

- Haml
- Haml::Buffer
- Haml::Compiler
- Haml::Engine
- Haml::Error
- Haml::ErubisTemplateHandler
- Haml::Exec
- Haml::Exec::Generic
- Haml::Exec::Haml
- Haml::Filters
- Haml::Filters::Base
- Haml::Filters::Cdata
- Haml::Filters::Css
- Haml::Filters::Erb
- Haml::Filters::Escaped
- Haml::Filters::Javascript
- Haml::Filters::Plain
- Haml::Filters::PrecompiledTiltFilter
- Haml::Filters::Preserve
- Haml::Filters::Ruby
- Haml::Filters::SassRailsTemplate
- Haml::Filters::ScssRailsTemplate
- Haml::Filters::TiltFilter
- Haml::Helpers
- Haml::Helpers::ActionViewExtensions
- Haml::Helpers::ErrorReturn
- Haml::Helpers::XssMods
- Haml::Options
- Haml::Parser
- Haml::Parser::Line
- Haml::Parser::ParseNode
- Haml::Plugin
- Haml::Railtie
- Haml::SafeErubisTemplate
- Haml::SyntaxError
- Haml::Template
- Haml::Util
- Haml::Util::StaticConditionalContext
- ActionView
- ActionView::Base
- ActionView::Helpers
- ActionView::Helpers::CaptureHelper
- ActionView::Helpers::FormHelper
- ActionView::Helpers::FormTagHelper
- ActionView::Helpers::HamlSupport
- ActionView::Helpers::InstanceTag
- ActionView::Helpers::TagHelper
- ActionView::Helpers::Tags
- ActionView::Helpers::Tags::TextArea
- ActionView::Helpers::TextHelper
- Object

No matching classes.

# ActionView::Base

### Public Instance Methods

output_buffer() click to toggle source
Also aliased as: output_buffer_without_haml
Alias for: output_buffer_with_haml
output_buffer=(new_buffer) click to toggle source
Also aliased as: set_output_buffer_without_haml
Alias for: set_output_buffer_with_haml
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() click to toggle source
Alias for: output_buffer
render(*args, &block) click to toggle source
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) click to toggle source
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) click to toggle source
Alias for: output_buffer=

[Validate]

Generated with the Darkfish Rdoc Generator 2.