Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/colorlib/string_extension.rb
Instance Method Summary collapse
- #black ⇒ Object
- #blue ⇒ Object
- #color(color) ⇒ Object
- #green ⇒ Object
- #red ⇒ Object
- #white ⇒ Object
- #yellow ⇒ Object
Instance Method Details
#black ⇒ Object
13 |
# File 'lib/colorlib/string_extension.rb', line 13 def black; color :black; end |
#blue ⇒ Object
11 |
# File 'lib/colorlib/string_extension.rb', line 11 def blue; color :blue; end |
#color(color) ⇒ Object
3 4 5 6 7 |
# File 'lib/colorlib/string_extension.rb', line 3 def color(color) ret = Colorlib::ColoredString.new self ret.color color ret end |
#green ⇒ Object
10 |
# File 'lib/colorlib/string_extension.rb', line 10 def green; color :green; end |
#red ⇒ Object
9 |
# File 'lib/colorlib/string_extension.rb', line 9 def red; color :red; end |
#white ⇒ Object
14 |
# File 'lib/colorlib/string_extension.rb', line 14 def white; color :white; end |
#yellow ⇒ Object
12 |
# File 'lib/colorlib/string_extension.rb', line 12 def yellow; color :yellow; end |