Class: Msf::Ui::Console::TablePrint::RankStyler

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

Instance Method Summary collapse

Instance Method Details

#style(rank) ⇒ Object


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

def style(rank)
  case rank
  when Msf::RankingName[Msf::GreatRanking]
    "%grn#{rank}%clr"
  when Msf::RankingName[Msf::ExcellentRanking]
    "%grn#{rank}%clr"
  else
    rank.to_s
  end
end