edge badge
Methods
C
R
Instance Public methods
call(template)
# File actionview/lib/action_view/template/handlers/builder.rb, line 8
def call(template)
  require_engine
  "xml = ::Builder::XmlMarkup.new(:indent => 2);" +
    "self.output_buffer = xml.target!;" +
    template.source +
    ";xml.target!;"
end
Instance Protected methods
require_engine()
# File actionview/lib/action_view/template/handlers/builder.rb, line 18
def require_engine
  @required ||= begin
    require "builder"
    true
  end
end