Module: Msf::Module::Ranking::ClassMethods

Defined in:
lib/msf/core/module/ranking.rb

Instance Method Summary collapse

Instance Method Details

#rankObject

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_hObject

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_sObject

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