Module: Rainbow::Ext::String::InstanceMethods

Included in:
String
Defined in:
lib/rainbow/ext/string.rb

Instance Method Summary collapse

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


40
41
42
# File 'lib/rainbow/ext/string.rb', line 40

def blink
  Rainbow(self).blink
end

#brightObject



24
25
26
# File 'lib/rainbow/ext/string.rb', line 24

def bright
  Rainbow(self).bright
end

#cross_outObject Also known as: strike



52
53
54
# File 'lib/rainbow/ext/string.rb', line 52

def cross_out
  Rainbow(self).cross_out
end

#faintObject



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

#hideObject



48
49
50
# File 'lib/rainbow/ext/string.rb', line 48

def hide
  Rainbow(self).hide
end

#inverseObject



44
45
46
# File 'lib/rainbow/ext/string.rb', line 44

def inverse
  Rainbow(self).inverse
end

#italicObject



32
33
34
# File 'lib/rainbow/ext/string.rb', line 32

def italic
  Rainbow(self).italic
end

#resetObject



20
21
22
# File 'lib/rainbow/ext/string.rb', line 20

def reset
  Rainbow(self).reset
end

#underlineObject



36
37
38
# File 'lib/rainbow/ext/string.rb', line 36

def underline
  Rainbow(self).underline
end