1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Add usage of color methods (ex: String#red)

This commit is contained in:
George 2016-10-26 08:45:27 -07:00
parent 49d50bdbc4
commit 80ca06a7e6

View file

@ -72,6 +72,13 @@ Supported color names:
:black, :redish, :greenish, :yellowish, :blueish, :purpleish, :cyanish, :pale
```
Use methods such as `.red` to set string color:
```ruby
irb> puts "red text".red
red text # (it's red)
```
Use `Object#ai` to return an ASCII encoded string:
```ruby