Module: Rainbow::Ext::String::InstanceMethods
- Included in:
- String
- Defined in:
- lib/rainbow/ext/string.rb
Instance Method Summary collapse
- #background(*color) ⇒ Object
- #blink ⇒ Object
- #bright ⇒ Object
- #cross_out ⇒ Object (also: #strike)
- #faint ⇒ Object
- #foreground(*color) ⇒ Object (also: #color, #colour)
- #hide ⇒ Object
- #inverse ⇒ Object
- #italic ⇒ Object
- #reset ⇒ Object
- #underline ⇒ Object
Instance Method Details
#background(*color) ⇒ Object
16 17 18 |
# File 'lib/rainbow/ext/string.rb', line 16 def background(*color) Rainbow(self).background(*color) end |
#blink ⇒ Object
40 41 42 |
# File 'lib/rainbow/ext/string.rb', line 40 def blink Rainbow(self).blink end |
#bright ⇒ Object
24 25 26 |
# File 'lib/rainbow/ext/string.rb', line 24 def bright Rainbow(self).bright end |
#cross_out ⇒ Object Also known as: strike
52 53 54 |
# File 'lib/rainbow/ext/string.rb', line 52 def cross_out Rainbow(self).cross_out end |
#faint ⇒ Object
28 29 30 |
# File 'lib/rainbow/ext/string.rb', line 28 def faint Rainbow(self).faint end |
#foreground(*color) ⇒ Object Also known as: color, colour
9 10 11 |
# File 'lib/rainbow/ext/string.rb', line 9 def foreground(*color) Rainbow(self).foreground(*color) end |
#hide ⇒ Object
48 49 50 |
# File 'lib/rainbow/ext/string.rb', line 48 def hide Rainbow(self).hide end |
#inverse ⇒ Object
44 45 46 |
# File 'lib/rainbow/ext/string.rb', line 44 def inverse Rainbow(self).inverse end |
#italic ⇒ Object
32 33 34 |
# File 'lib/rainbow/ext/string.rb', line 32 def italic Rainbow(self).italic end |
#reset ⇒ Object
20 21 22 |
# File 'lib/rainbow/ext/string.rb', line 20 def reset Rainbow(self).reset end |
#underline ⇒ Object
36 37 38 |
# File 'lib/rainbow/ext/string.rb', line 36 def underline Rainbow(self).underline end |