Method: Msf::DataStore#to_h
- Defined in:
- lib/msf/core/data_store.rb
permalink #to_h ⇒ Object
Override Hash’s to_h method so we can include the original case of each key (failing to do this breaks a number of places in framework and pro that use serialized datastores)
266 267 268 269 270 271 272 |
# File 'lib/msf/core/data_store.rb', line 266 def to_h datastore_hash = {} self.keys.each do |k| datastore_hash[k.to_s] = self[k].to_s end datastore_hash end |