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

Merge pull request #277 from georgeu2000/update-readme

Add usage of color methods (ex: String#red)
This commit is contained in:
James Cox 2017-06-16 17:15:01 -04:00 committed by GitHub
commit 0a69d40be5

View file

@ -306,6 +306,14 @@ formatting:
<%= ap @accounts.first, :html => true %>
### String Convenience Methods ###
Use methods such as `.red` to set string color:
```ruby
irb> puts "red text".red
red text # (it's red)
```
### Setting Custom Defaults ###
You can set your own default options by creating ``.aprc`` file in your home
directory. Within that file assign your defaults to ``AwesomePrint.defaults``.