Files
metasploit-gs/lib/msf/core/data_store.rb
T
Matt Miller 1e6e29ad6d can I get a woot woot
git-svn-id: file:///home/svn/incoming/trunk@2576 4d416f70-5f16-0410-b530-b9f4589650da
2005-06-05 05:42:14 +00:00

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