Method: Msf::DataStore#to_s

Defined in:
lib/msf/core/data_store.rb

#to_s(delim = ' ') ⇒ Object

Serializes the options in the datastore to a string.

[View source] [View on GitHub]

253
254
255
256
257
258
259
260
261
# File 'lib/msf/core/data_store.rb', line 253

def to_s(delim = ' ')
  str = ''

  keys.sort.each { |key|
    str << "#{key}=#{self[key]}" + ((str.length) ? delim : '')
  }

  str
end