Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/nhl_scores.rb

Instance Method Summary collapse

Instance Method Details

#alignObject



49
50
51
# File 'lib/nhl_scores.rb', line 49

def align
  self.rjust(32)
end

#color(text, color_code) ⇒ Object



45
46
47
# File 'lib/nhl_scores.rb', line 45

def color(text, color_code)
  "#{color_code}#{text}\e[0m"
end

#yellowObject



43
# File 'lib/nhl_scores.rb', line 43

def yellow; color(self, "\e[0;33m"); end