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