Files
metasploit-gs/lib/msf/core/data_store.rb
T
Matt Miller e78604b603 spruced things up a bit
git-svn-id: file:///home/svn/incoming/trunk@2499 4d416f70-5f16-0410-b530-b9f4589650da
2005-05-21 18:27:24 +00:00

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