Module: Msf::Module::FullName::ClassMethods
- Defined in:
- lib/msf/core/module/full_name.rb
Instance Attribute Summary collapse
-
#refname ⇒ Object
The module’s name that is assigned to it by the framework or derived from the path that the module is loaded from.
Instance Method Summary collapse
-
#aliases ⇒ Object
Returns a list of alternate names the module might go by.
-
#fullname ⇒ Object
Class Methods.
- #promptname ⇒ Object
-
#realname ⇒ Object
Classes themselves are never aliased (at the moment, anyway), but this is always just the #fullname.
- #shortname ⇒ Object
Instance Attribute Details
#refname ⇒ Object
The module’s name that is assigned to it by the framework or derived from the path that the module is loaded from.
17 18 19 |
# File 'lib/msf/core/module/full_name.rb', line 17 def refname @refname end |
Instance Method Details
#aliases ⇒ Object
Returns a list of alternate names the module might go by.
46 47 48 |
# File 'lib/msf/core/module/full_name.rb', line 46 def aliases const_defined?(:Aliases) ? const_get(:Aliases) : [] end |
#fullname ⇒ Object
Class Methods
23 24 25 |
# File 'lib/msf/core/module/full_name.rb', line 23 def fullname "#{type}/#{refname}" end |
#promptname ⇒ Object
35 36 37 |
# File 'lib/msf/core/module/full_name.rb', line 35 def promptname refname end |
#realname ⇒ Object
Classes themselves are never aliased (at the moment, anyway), but this is always just the #fullname.
31 32 33 |
# File 'lib/msf/core/module/full_name.rb', line 31 def realname fullname end |
#shortname ⇒ Object
39 40 41 |
# File 'lib/msf/core/module/full_name.rb', line 39 def shortname refname.split('/').last end |