Method: Msf::ModuleDataStore#fetch
- Defined in:
- lib/msf/core/module_data_store.rb
#fetch(key) ⇒ Object
Fetch the key from the local hash first, or from the framework datastore if we can’t directly find it
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/msf/core/module_data_store.rb', line 37 def fetch(key) key = find_key_case(key) val = nil val = super if(@imported_by[key] != 'self') if (val.nil? and @_module and @_module.framework) val = @_module.framework.datastore[key] end val = super if val.nil? val end |