Class: REXML::Document
- Inherits:
-
Element
- Object
- Element
- REXML::Document
- Defined in:
- activesupport/lib/active_support/core_ext/rexml.rb
Overview
:nodoc:
Class Method Summary (collapse)
Instance Method Summary (collapse)
Class Method Details
+ (Object) entity_expansion_limit=(val)
32 33 34 |
# File 'activesupport/lib/active_support/core_ext/rexml.rb', line 32 def self.entity_expansion_limit= val @@entity_expansion_limit = val end |
Instance Method Details
- (Object) record_entity_expansion!
36 37 38 39 40 41 42 |
# File 'activesupport/lib/active_support/core_ext/rexml.rb', line 36 def record_entity_expansion! @number_of_expansions ||= 0 @number_of_expansions += 1 if @number_of_expansions > @@entity_expansion_limit raise "Number of entity expansions exceeded, processing aborted." end end |