Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/client-api/validator.rb
Instance Method Summary collapse
- #black ⇒ Object
- #blink ⇒ Object
- #blue ⇒ Object
- #bold ⇒ Object
- #brown ⇒ Object
- #cyan ⇒ Object
- #gray ⇒ Object
- #green ⇒ Object
- #italic ⇒ Object
- #magenta ⇒ Object
- #red ⇒ Object
- #reverse_color ⇒ Object
- #underline ⇒ Object
Instance Method Details
#black ⇒ Object
423 |
# File 'lib/client-api/validator.rb', line 423 def black; "\e[30m#{self}\e[0m" end |
#blink ⇒ Object
435 |
# File 'lib/client-api/validator.rb', line 435 def blink; "\e[5m#{self}\e[25m" end |
#blue ⇒ Object
427 |
# File 'lib/client-api/validator.rb', line 427 def blue; "\e[34m#{self}\e[0m" end |
#bold ⇒ Object
432 |
# File 'lib/client-api/validator.rb', line 432 def bold; "\e[1m#{self}\e[22m" end |
#brown ⇒ Object
426 |
# File 'lib/client-api/validator.rb', line 426 def brown; "\e[33m#{self}\e[0m" end |
#cyan ⇒ Object
429 |
# File 'lib/client-api/validator.rb', line 429 def cyan; "\e[36m#{self}\e[0m" end |
#gray ⇒ Object
430 |
# File 'lib/client-api/validator.rb', line 430 def gray; "\e[37m#{self}\e[0m" end |
#green ⇒ Object
425 |
# File 'lib/client-api/validator.rb', line 425 def green; "\e[32m#{self}\e[0m" end |
#italic ⇒ Object
433 |
# File 'lib/client-api/validator.rb', line 433 def italic; "\e[3m#{self}\e[23m" end |
#magenta ⇒ Object
428 |
# File 'lib/client-api/validator.rb', line 428 def magenta; "\e[35m#{self}\e[0m" end |
#red ⇒ Object
424 |
# File 'lib/client-api/validator.rb', line 424 def red; "\e[31m#{self}\e[0m" end |
#reverse_color ⇒ Object
436 |
# File 'lib/client-api/validator.rb', line 436 def reverse_color; "\e[7m#{self}\e[27m" end |
#underline ⇒ Object
434 |
# File 'lib/client-api/validator.rb', line 434 def underline; "\e[4m#{self}\e[24m" end |