diff --git a/README.md b/README.md index 6d4d5af..da184e8 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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