Class: Arachni::Database::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/arachni/database/base.rb

Overview

This class is abstract.

Base class for Database data structures

Provides helper methods for data structures to be implemented related to objecting dumping, loading, unique filename generation, etc.

@author: Tasos “Zapotek” Laskos

<[email protected]>
<[email protected]>

@version: 0.1

Direct Known Subclasses

Hash, Queue

Instance Method Summary collapse

Constructor Details

#initialize(serializer = nil) ⇒ Base

Returns a new instance of Base.

Parameters:

  • serializer (Object) (defaults to: nil)

    any object that responds to ‘dump’ and ‘load’.<br/> Will default to YAML.



34
35
36
37
38
39
# File 'lib/arachni/database/base.rb', line 34

def initialize( serializer = nil )
    @serializer = serializer
    if !@serializer
        @serializer = Marshal
    end
end