Class: Arachni::State::ElementFilter
- Defined in:
- lib/arachni/state/element_filter.rb
Overview
Stores and provides access to the state of the ElementFilter.
Constant Summary collapse
- TYPES =
[:forms, :links, :link_templates, :cookies, :jsons, :xmls]
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
- #clear ⇒ Object
- #dump(directory) ⇒ Object
- #hash ⇒ Object
-
#initialize ⇒ ElementFilter
constructor
A new instance of ElementFilter.
- #statistics ⇒ Object
Constructor Details
Class Method Details
Instance Method Details
#==(other) ⇒ Object
44 45 46 |
# File 'lib/arachni/state/element_filter.rb', line 44 def ==( other ) hash == other.hash end |
#clear ⇒ Object
52 53 54 |
# File 'lib/arachni/state/element_filter.rb', line 52 def clear TYPES.each { |type| send(type).clear } end |
#dump(directory) ⇒ Object
34 35 36 37 38 |
# File 'lib/arachni/state/element_filter.rb', line 34 def dump( directory ) FileUtils.mkdir_p( directory ) IO.binwrite( "#{directory}/sets", Marshal.dump( self ) ) end |