class Stattleship::TopStat
Public Instance Methods
format_stat(value)
click to toggle source
# File lib/stattleship/top_stats.rb, line 7 def format_stat(value) StatFormatter.stat(stat_name: stat_name, value: stat) end
to_sentence()
click to toggle source
# File lib/stattleship/top_stats.rb, line 3 def to_sentence "#{player.name} had #{format_stat(stat)} #{stat_name} in #{game.name} for the #{place.ordinalize} best performance" end