class Calrom::Highlighter::List
Constants
- COLOUR_OVERRIDE
Public Instance Methods
colour(text, colour)
click to toggle source
# File lib/calrom/highlighter/list.rb, line 9 def colour(text, colour) ColorizedString.new(text).colorize(COLOUR_OVERRIDE[colour] || colour.symbol) end
rank(text, rank)
click to toggle source
# File lib/calrom/highlighter/list.rb, line 13 def rank(text, rank) if rank.solemnity? ColorizedString .new(rank >= CR::Ranks::FEAST_PROPER ? text.upcase : text) .colorize(mode: :bold) else text end end
today(text)
click to toggle source
# File lib/calrom/highlighter/list.rb, line 23 def today(text) ColorizedString.new(text).colorize(background: :light_black) end