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:
parent
49d50bdbc4
commit
80ca06a7e6
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue