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 23
23:       def self.entity_expansion_limit= val
24:         @@entity_expansion_limit = val
25:       end

Public Instance methods

[Source]

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

[Validate]