mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Update README.md
This commit is contained in:
parent
d8aeb66b4b
commit
76f540fd0b
1 changed files with 7 additions and 0 deletions
|
@ -71,6 +71,13 @@ Supported color names:
|
|||
:black, :redish, :greenish, :yellowish, :blueish, :purpleish, :cyanish, :pale
|
||||
```
|
||||
|
||||
Use `Object#ai` to return an ASCII encoded string:
|
||||
|
||||
```ruby
|
||||
irb> "awesome print".ai
|
||||
=> "\e[0;33m\"awesome print\"\e[0m"
|
||||
```
|
||||
|
||||
### Examples ###
|
||||
|
||||
```ruby
|
||||
|
|
Loading…
Reference in a new issue