module Arachni::Element::Capabilities::WithDOM
@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>
Attributes
dom[RW]
@return [DOM]
skip_dom[RW]
@return [Bool, nil]
Force {#dom} to return `nil` -- used as an audit optimization.
Public Instance Methods
dup()
click to toggle source
Calls superclass method
# File lib/arachni/element/capabilities/with_dom.rb, line 40 def dup copy_with_dom( super ) end
skip_dom=( bool )
click to toggle source
# File lib/arachni/element/capabilities/with_dom.rb, line 31 def skip_dom=( bool ) @dom = nil if bool @skip_dom = bool end
skip_dom?()
click to toggle source
# File lib/arachni/element/capabilities/with_dom.rb, line 36 def skip_dom? !!@skip_dom end
Private Instance Methods
copy_with_dom( other )
click to toggle source
# File lib/arachni/element/capabilities/with_dom.rb, line 46 def copy_with_dom( other ) other.dom = @dom.dup.tap { |d| d.parent = other } if @dom other.skip_dom = @skip_dom other end