Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/mocal/highlite.rb
Instance Method Summary collapse
Instance Method Details
#blink ⇒ Object
14 15 16 |
# File 'lib/mocal/highlite.rb', line 14 def blink escape 5 end |
#bright ⇒ Object
8 9 10 |
# File 'lib/mocal/highlite.rb', line 8 def bright escape 1 end |
#escape(code) ⇒ Object
5 6 7 |
# File 'lib/mocal/highlite.rb', line 5 def escape(code) "\e[#{code}m#{self}\e[0m" end |
#reverse ⇒ Object
17 18 19 |
# File 'lib/mocal/highlite.rb', line 17 def reverse escape 7 end |
#underscore ⇒ Object
11 12 13 |
# File 'lib/mocal/highlite.rb', line 11 def underscore escape 4 end |