Class: String

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

Overview

Extends the String class by adding utility methods for string coloring

Instance Method Summary collapse

Instance Method Details

#blueObject



15
16
17
# File 'lib/devfromcli.rb', line 15

def blue
  "\e[34m#{self}\e[0m"
end

#yellowObject



11
12
13
# File 'lib/devfromcli.rb', line 11

def yellow
  "\e[33m#{self}\e[0m"
end