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
195 |
# File 'lib/client-api/validator.rb', line 195 def black; "\e[30m#{self}\e[0m" end |
#blink ⇒ Object
207 |
# File 'lib/client-api/validator.rb', line 207 def blink; "\e[5m#{self}\e[25m" end |
#blue ⇒ Object
199 |
# File 'lib/client-api/validator.rb', line 199 def blue; "\e[34m#{self}\e[0m" end |
#bold ⇒ Object
204 |
# File 'lib/client-api/validator.rb', line 204 def bold; "\e[1m#{self}\e[22m" end |
#brown ⇒ Object
198 |
# File 'lib/client-api/validator.rb', line 198 def brown; "\e[33m#{self}\e[0m" end |
#cyan ⇒ Object
201 |
# File 'lib/client-api/validator.rb', line 201 def cyan; "\e[36m#{self}\e[0m" end |
#gray ⇒ Object
202 |
# File 'lib/client-api/validator.rb', line 202 def gray; "\e[37m#{self}\e[0m" end |
#green ⇒ Object
197 |
# File 'lib/client-api/validator.rb', line 197 def green; "\e[32m#{self}\e[0m" end |
#italic ⇒ Object
205 |
# File 'lib/client-api/validator.rb', line 205 def italic; "\e[3m#{self}\e[23m" end |
#magenta ⇒ Object
200 |
# File 'lib/client-api/validator.rb', line 200 def magenta; "\e[35m#{self}\e[0m" end |
#red ⇒ Object
196 |
# File 'lib/client-api/validator.rb', line 196 def red; "\e[31m#{self}\e[0m" end |
#reverse_color ⇒ Object
208 |
# File 'lib/client-api/validator.rb', line 208 def reverse_color; "\e[7m#{self}\e[27m" end |
#underline ⇒ Object
206 |
# File 'lib/client-api/validator.rb', line 206 def underline; "\e[4m#{self}\e[24m" end |