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
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`)
* Search Warning Messages by:
* Message
* Source File
* Source Method
* Message
* Prints Messages upon exit.
* Prints unique Warning messages upon exit.
* ANSI Coloring.

## 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!"
end

danger!
danger!

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

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

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

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

## Requirements

Expand Down

0 comments on commit f27f802

Please sign in to comment.