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

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

Instance Method Summary collapse

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


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

def blink
  Rainbow(self).blink
end

#brightObject



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

#hideObject



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

def hide
  Rainbow(self).hide
end

#inverseObject



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

def inverse
  Rainbow(self).inverse
end

#italicObject



27
28
29
# File 'lib/rainbow/ext/string.rb', line 27

def italic
  Rainbow(self).italic
end

#resetObject



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

def reset
  Rainbow(self).reset
end

#underlineObject



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

def underline
  Rainbow(self).underline
end