1e6e29ad6d
git-svn-id: file:///home/svn/incoming/trunk@2576 4d416f70-5f16-0410-b530-b9f4589650da
25 lines
380 B
Ruby
25 lines
380 B
Ruby
module Msf
|
|
|
|
###
|
|
#
|
|
# DataStore
|
|
# ---------
|
|
#
|
|
# The data store is just a bitbucket that holds keyed values.
|
|
#
|
|
###
|
|
class DataStore < Hash
|
|
|
|
# This method is a helper method that imports the default value for
|
|
# all of the supplied options
|
|
def import_options(options)
|
|
options.each_option { |name, opt|
|
|
if (opt.default)
|
|
self.store(name, opt.default)
|
|
end
|
|
}
|
|
end
|
|
end
|
|
|
|
end
|