Module: Loofah::DocumentDecorator
- Included in:
- HTML::Document, XML::Document
- Defined in:
- lib/loofah/instance_methods.rb
Overview
:nodoc:
Instance Method Summary (collapse)
-
- (DocumentDecorator) initialize(*args, &block)
A new instance of DocumentDecorator.
Instance Method Details
- (DocumentDecorator) initialize(*args, &block)
A new instance of DocumentDecorator
121 122 123 124 125 |
# File 'lib/loofah/instance_methods.rb', line 121 def initialize(*args, &block) super self.decorators(Nokogiri::XML::Node) << ScrubBehavior::Node self.decorators(Nokogiri::XML::NodeSet) << ScrubBehavior::NodeSet end |