Module: Sevgi::Function::Color

Included in:
Sevgi::Function
Defined in:
lib/sevgi/function/color.rb

Instance Method Summary collapse

Instance Method Details

#blue(string) ⇒ Object



6
# File 'lib/sevgi/function/color.rb', line 6

def blue(string) = "\e[1m\e[38;5;81m#{string}\e[0m"

#bold(string) ⇒ Object



13
# File 'lib/sevgi/function/color.rb', line 13

def bold(string) = "\e[1m#{string}\e[0m"

#cyan(string) ⇒ Object



7
# File 'lib/sevgi/function/color.rb', line 7

def cyan(string) = "\e[1m\e[38;5;51m#{string}\e[0m"

#dim(string) ⇒ Object



14
# File 'lib/sevgi/function/color.rb', line 14

def dim(string) = "\e[1m\e[2m#{string}\e[0m"

#green(string) ⇒ Object



8
# File 'lib/sevgi/function/color.rb', line 8

def green(string) = "\e[1m\e[38;5;35m#{string}\e[0m"

#magenta(string) ⇒ Object



9
# File 'lib/sevgi/function/color.rb', line 9

def magenta(string) = "\e[1m\e[38;5;200m#{string}\e[0m"

#red(string) ⇒ Object



10
# File 'lib/sevgi/function/color.rb', line 10

def red(string) = "\e[1m\e[38;5;197m#{string}\e[0m"

#yellow(string) ⇒ Object



11
# File 'lib/sevgi/function/color.rb', line 11

def yellow(string) = "\e[1m\e[38;5;227m#{string}\e[0m"