Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/tco.rb
Instance Method Summary collapse
- #bg(colour) ⇒ Object
- #bright ⇒ Object
- #decorate ⇒ Object
- #fg(colour) ⇒ Object
- #style(style) ⇒ Object
- #underline ⇒ Object
Instance Method Details
#bg(colour) ⇒ Object
174 175 176 |
# File 'lib/tco.rb', line 174 def bg(colour) Tco::bg colour, self end |
#bright ⇒ Object
178 179 180 |
# File 'lib/tco.rb', line 178 def bright Tco::bright self end |
#decorate ⇒ Object
166 167 168 |
# File 'lib/tco.rb', line 166 def decorate Tco::parse self, Tco::Style.new end |
#fg(colour) ⇒ Object
170 171 172 |
# File 'lib/tco.rb', line 170 def fg(colour) Tco::fg colour, self end |
#style(style) ⇒ Object
186 187 188 |
# File 'lib/tco.rb', line 186 def style(style) Tco::style style, self end |
#underline ⇒ Object
182 183 184 |
# File 'lib/tco.rb', line 182 def underline Tco::underline self end |