123456789_123456789_123456789_123456789_123456789_

Class: ActionView::Template::Handlers::Builder

Relationships & Source Files
Inherits: Object
Defined in: actionview/lib/action_view/template/handlers/builder.rb

Class Attribute Summary

Instance Attribute Summary

Instance Method Summary

Class Attribute Details

.default_format (rw)

[ GitHub ]

  
# File 'actionview/lib/action_view/template/handlers/builder.rb', line 5

class_attribute :default_format

.default_format?Boolean (rw)

[ GitHub ]

  
# File 'actionview/lib/action_view/template/handlers/builder.rb', line 5

class_attribute :default_format

Instance Attribute Details

#default_format (rw)

[ GitHub ]

  
# File 'actionview/lib/action_view/template/handlers/builder.rb', line 5

class_attribute :default_format

#default_format?Boolean (rw)

[ GitHub ]

  
# File 'actionview/lib/action_view/template/handlers/builder.rb', line 5

class_attribute :default_format

Instance Method Details

#call(template)

[ GitHub ]

  
# 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