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 6
class_attribute :default_format, default: :xml
.default_format? ⇒ Boolean
(rw)
[ GitHub ]
# File 'actionview/lib/action_view/template/handlers/builder.rb', line 6
class_attribute :default_format, default: :xml
Instance Attribute Details
#default_format (rw)
[ GitHub ]# File 'actionview/lib/action_view/template/handlers/builder.rb', line 6
class_attribute :default_format, default: :xml
#default_format? ⇒ Boolean
(rw)
[ GitHub ]
# File 'actionview/lib/action_view/template/handlers/builder.rb', line 6
class_attribute :default_format, default: :xml
Instance Method Details
#call(template, source)
[ GitHub ]# 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
#require_engine (private)
[ GitHub ]# File 'actionview/lib/action_view/template/handlers/builder.rb', line 17
def require_engine # :doc: @required ||= begin require "builder" true end end