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

@ -305,6 +305,14 @@ With other web frameworks (ex: in Sinatra templates) you can explicitly request
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