Skip to content

Commit

Permalink
Updated the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jun 25, 2011
1 parent 895653d commit f27f802
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ generated by your code, search through them and/or print them upon exit.


* Respects `$VERBOSE` (`ruby -w`) and `$DEBUG` (`ruby -d`) * Respects `$VERBOSE` (`ruby -w`) and `$DEBUG` (`ruby -d`)
* Search Warning Messages by: * Search Warning Messages by:
* Message
* Source File * Source File
* Source Method * Source Method
* Message * Prints unique Warning messages upon exit.
* Prints Messages upon exit.
* ANSI Coloring. * ANSI Coloring.


## Examples ## Examples
Expand All @@ -29,22 +29,24 @@ generated by your code, search through them and/or print them upon exit.
warn "Fire in the disco!" warn "Fire in the disco!"
end end


danger!
danger! danger!


Warnings.grep(/fire/) Warnings.grep(/fire/)
# => [...] # => [...]


Warnings.from_method('danger!') Warnings.from('foo/bar.rb')
# => [...] # => [...]


Warnings.from_file('foo/bar.rb') Warnings.from_method('danger!')
# => [...] # => [...]


exit exit
# #
# Warnings: # Warnings:
# #
# fire in the disco! lib/foo/bar.rb:42 # fire in the disco!
# lib/foo/bar.rb:42


## Requirements ## Requirements


Expand Down

0 comments on commit f27f802

Please sign in to comment.