Module: Rainbow::Ext::String::InstanceMethods
- Defined in:
- lib/rainbow/ext/string.rb
Instance Method Summary collapse
- #background(*color) ⇒ Object
- #blink ⇒ Object
- #bright ⇒ Object
- #foreground(*color) ⇒ Object (also: #color, #colour)
- #hide ⇒ Object
- #inverse ⇒ Object
- #italic ⇒ Object
- #reset ⇒ Object
- #underline ⇒ Object
Instance Method Details
#background(*color) ⇒ Object
15 16 17 |
# File 'lib/rainbow/ext/string.rb', line 15 def background(*color) Rainbow(self).background(*color) end |
#blink ⇒ Object
35 36 37 |
# File 'lib/rainbow/ext/string.rb', line 35 def blink Rainbow(self).blink end |
#bright ⇒ Object
23 24 25 |
# File 'lib/rainbow/ext/string.rb', line 23 def bright Rainbow(self).bright end |
#foreground(*color) ⇒ Object Also known as: color, colour
8 9 10 |
# File 'lib/rainbow/ext/string.rb', line 8 def foreground(*color) Rainbow(self).foreground(*color) end |
#hide ⇒ Object
43 44 45 |
# File 'lib/rainbow/ext/string.rb', line 43 def hide Rainbow(self).hide end |
#inverse ⇒ Object
39 40 41 |
# File 'lib/rainbow/ext/string.rb', line 39 def inverse Rainbow(self).inverse end |
#italic ⇒ Object
27 28 29 |
# File 'lib/rainbow/ext/string.rb', line 27 def italic Rainbow(self).italic end |
#reset ⇒ Object
19 20 21 |
# File 'lib/rainbow/ext/string.rb', line 19 def reset Rainbow(self).reset end |
#underline ⇒ Object
31 32 33 |
# File 'lib/rainbow/ext/string.rb', line 31 def underline Rainbow(self).underline end |