Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/string.rb
Constant Summary collapse
- NC =
"\e[0m"
- GRAY =
"\e[1;30m"
- RED =
"\e[1;31m"
- GREEN =
"\e[1;32m"
- YELLOW =
"\e[1;33m"
- BLUE =
"\e[1;34m"
- CYAN =
"\e[1;36m"
Instance Method Summary collapse
- #blue ⇒ Object
- #cyan ⇒ Object
- #gray ⇒ Object
- #green ⇒ Object
- #red ⇒ Object
- #sanitize_colored ⇒ Object
- #yellow ⇒ Object
Instance Method Details
#sanitize_colored ⇒ Object
20 |
# File 'lib/string.rb', line 20 def sanitize_colored; gsub(/\e\[\d+;?\d*m/, "") end |