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

#bold ⇒ Object



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

def bold
  @text.bold
end

#danger ⇒ Object



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

def danger
  @text.bold.red
end

#jade ⇒ Object



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

def jade
  @text.bold.green
end

#primary ⇒ Object



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

def primary
  @text.bold.cyan
end

#sea ⇒ Object



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

def sea
  @text.bold.blue
end

#warn ⇒ Object



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

def warn
  @text.bold.yellow
end