Module: Rainbow::String::InstanceMethods

Defined in:
lib/rainbow/string.rb

Instance Method Summary collapse

Instance Method Details

#background(*color) ⇒ Object



14
15
16
# File 'lib/rainbow/string.rb', line 14

def background(*color)
  Rainbow(self).background(*color)
end


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

def blink
  Rainbow(self).blink
end

#brightObject



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

#hideObject



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

def hide
  Rainbow(self).hide
end

#inverseObject



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

def inverse
  Rainbow(self).inverse
end

#italicObject



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

def italic
  Rainbow(self).italic
end

#resetObject



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

def reset
  Rainbow(self).reset
end

#underlineObject



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

def underline
  Rainbow(self).underline
end