Sha256: 522cd1d3938ad1675c54a1d95ed8716bdf37695af44d71f106c397b75faf5fe5
Contents?: true
Size: 538 Bytes
Versions: 91
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true module ActionView module Template::Handlers class Builder class_attribute :default_format, default: :xml def call(template) require_engine "xml = ::Builder::XmlMarkup.new(:indent => 2);" \ "self.output_buffer = xml.target!;" + template.source + ";xml.target!;" end private def require_engine # :doc: @required ||= begin require "builder" true end end end end end
Version data entries
91 entries across 91 versions & 5 rubygems