Module: Rainbow::String::InstanceMethods
- Defined in:
- lib/rainbow/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
14 15 16 |
# File 'lib/rainbow/string.rb', line 14 def background(*color) Rainbow(self).background(*color) end |
#blink ⇒ Object
34 35 36 |
# File 'lib/rainbow/string.rb', line 34 def blink Rainbow(self).blink end |
#bright ⇒ Object
22 23 24 |
# File 'lib/rainbow/string.rb', line 22 def bright Rainbow(self).bright end |
#foreground(*color) ⇒ Object Also known as: color, colour
7 8 9 |
# File 'lib/rainbow/string.rb', line 7 def foreground(*color) Rainbow(self).foreground(*color) end |
#hide ⇒ Object
42 43 44 |
# File 'lib/rainbow/string.rb', line 42 def hide Rainbow(self).hide end |
#inverse ⇒ Object
38 39 40 |
# File 'lib/rainbow/string.rb', line 38 def inverse Rainbow(self).inverse end |
#italic ⇒ Object
26 27 28 |
# File 'lib/rainbow/string.rb', line 26 def italic Rainbow(self).italic end |
#reset ⇒ Object
18 19 20 |
# File 'lib/rainbow/string.rb', line 18 def reset Rainbow(self).reset end |
#underline ⇒ Object
30 31 32 |
# File 'lib/rainbow/string.rb', line 30 def underline Rainbow(self).underline end |