Module: Msf::Module::ModuleStore
- Included in:
- Msf::Module
- Defined in:
- lib/msf/core/module/module_store.rb
Instance Attribute Summary collapse
-
#module_store ⇒ Object
A generic hash used for passing additional information to modules.
Instance Method Summary collapse
-
#[](k) ⇒ Object
Read a value from the module store.
-
#[]=(k, v) ⇒ Object
Store a value into the module.
Instance Attribute Details
#module_store ⇒ Object
A generic hash used for passing additional information to modules
9 10 11 |
# File 'lib/msf/core/module/module_store.rb', line 9 def module_store @module_store end |
Instance Method Details
#[](k) ⇒ Object
Read a value from the module store
18 19 20 |
# File 'lib/msf/core/module/module_store.rb', line 18 def [](k) self.module_store[k] end |
#[]=(k, v) ⇒ Object
Store a value into the module
25 26 27 |
# File 'lib/msf/core/module/module_store.rb', line 25 def []=(k,v) self.module_store[k] = v end |