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:
commit
0a69d40be5
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue