Class: Mchat::StyleFont

Inherits:
Object
  • Object
show all
Defined in:
lib/mchat/comps/font.rb

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ StyleFont

Returns a new instance of StyleFont.



5
6
7
# File 'lib/mchat/comps/font.rb', line 5

def initialize(text)
  @text = Rainbow(text)
end

Instance Method Details

#boldObject



29
30
31
# File 'lib/mchat/comps/font.rb', line 29

def bold
  @text.bold
end

#dangerObject



25
26
27
# File 'lib/mchat/comps/font.rb', line 25

def danger
  @text.bold.red
end

#jadeObject



13
14
15
# File 'lib/mchat/comps/font.rb', line 13

def jade
  @text.bold.green
end

#primaryObject



9
10
11
# File 'lib/mchat/comps/font.rb', line 9

def primary
  @text.bold.cyan
end

#seaObject



17
18
19
# File 'lib/mchat/comps/font.rb', line 17

def sea
  @text.bold.blue
end

#warnObject



21
22
23
# File 'lib/mchat/comps/font.rb', line 21

def warn
  @text.bold.yellow
end