Class REXML::Document
In: vendor/rails/activesupport/lib/active_support/core_ext/rexml.rb
Parent: Element

Methods

Public Class methods

[Source]

    # File vendor/rails/activesupport/lib/active_support/core_ext/rexml.rb, line 27
27:         def self.entity_expansion_limit= val
28:           @@entity_expansion_limit = val
29:         end

Public Instance methods

[Source]

    # File vendor/rails/activesupport/lib/active_support/core_ext/rexml.rb, line 31
31:         def record_entity_expansion!
32:           @number_of_expansions ||= 0
33:           @number_of_expansions += 1
34:           if @number_of_expansions > @@entity_expansion_limit
35:             raise "Number of entity expansions exceeded, processing aborted."
36:           end
37:         end

[Validate]