Class: ActionView::Template::Handlers::Builder
- Defined in:
- actionview/lib/action_view/template/handlers/builder.rb
Instance Method Summary collapse
Instance Method Details
#call(template, source) ⇒ Object
8 9 10 11 12 13 14 |
# File 'actionview/lib/action_view/template/handlers/builder.rb', line 8 def call(template, source) require_engine "xml = ::Builder::XmlMarkup.new(:indent => 2);" \ "self.output_buffer = xml.target!;" + source + ";xml.target!;" end |