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

Public Instance methods

[Source]

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

[Validate]