Class: Mchat::StyleFont
- Inherits:
-
Object
- Object
- Mchat::StyleFont
- Defined in:
- lib/mchat/comps/font.rb
Instance Method Summary collapse
- #bold ⇒ Object
- #danger ⇒ Object
-
#initialize(text) ⇒ StyleFont
constructor
A new instance of StyleFont.
- #jade ⇒ Object
- #primary ⇒ Object
- #sea ⇒ Object
- #warn ⇒ Object
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 |