Module: Msf::Module::Ranking::ClassMethods
- Defined in:
- lib/msf/core/module/ranking.rb
Instance Method Summary collapse
-
#rank ⇒ Object
Returns this module’s ranking.
-
#rank_to_h ⇒ Object
Returns this module’s ranking as a string for display.
-
#rank_to_s ⇒ Object
Returns this module’s ranking as a string representation.
Instance Method Details
#rank ⇒ Object
Returns this module’s ranking.
8 9 10 |
# File 'lib/msf/core/module/ranking.rb', line 8 def rank (const_defined?('Rank')) ? const_get('Rank') : Msf::NormalRanking end |
#rank_to_h ⇒ Object
Returns this module’s ranking as a string for display.
15 16 17 |
# File 'lib/msf/core/module/ranking.rb', line 15 def rank_to_h rank_to_s.gsub('Rank', '').downcase end |
#rank_to_s ⇒ Object
Returns this module’s ranking as a string representation.
22 23 24 |
# File 'lib/msf/core/module/ranking.rb', line 22 def rank_to_s Msf::RankingName[rank] end |