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

Version Path
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/actionview-5.2.3/lib/action_view/template/handlers/builder.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/actionview-5.2.3/lib/action_view/template/handlers/builder.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/actionview-5.2.3/lib/action_view/template/handlers/builder.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/actionview-5.2.3/lib/action_view/template/handlers/builder.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/actionview-5.2.3/lib/action_view/template/handlers/builder.rb
spiral_form-0.1.1 vendor/bundle/gems/actionview-5.2.3/lib/action_view/template/handlers/builder.rb
spiral_form-0.1.0 vendor/bundle/gems/actionview-5.2.3/lib/action_view/template/handlers/builder.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/actionview-5.2.3/lib/action_view/template/handlers/builder.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/actionview-5.2.3/lib/action_view/template/handlers/builder.rb
jets-1.9.7 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb
jets-1.9.6 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb
jets-1.9.5 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb
jets-1.9.4 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb
jets-1.9.3 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb
jets-1.9.2 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb
jets-1.9.1 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb
jets-1.9.0 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb
jets-1.8.14 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb
jets-1.8.13 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb
jets-1.8.12 vendor/rails/actionview/lib/action_view/template/handlers/builder.rb