Class: Msf::Ui::Console::TablePrint::RankFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/msf/ui/console/table_print/rank_formatter.rb

Instance Method Summary collapse

Instance Method Details

#format(rank) ⇒ Object


9
10
11
12
13
14
15
# File 'lib/msf/ui/console/table_print/rank_formatter.rb', line 9

def format(rank)
  if (rank.respond_to? :to_i) && (Msf::RankingName.key?(rank.to_i))
    Msf::RankingName[rank.to_i]
  else
    rank
  end
end