e78604b603
git-svn-id: file:///home/svn/incoming/trunk@2499 4d416f70-5f16-0410-b530-b9f4589650da
25 lines
392 B
Ruby
25 lines
392 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_value)
|
|
self.store(name, opt.default_value)
|
|
end
|
|
}
|
|
end
|
|
end
|
|
|
|
end
|