Browse files

update README

  • Loading branch information...
1 parent 67772e2 commit a2f7d4b03d6b931112098f09cbe5720f7f5fa1c8 @jugyo jugyo committed Mar 20, 2011
Showing with 12 additions and 1 deletion.
  1. +12 −1 README.md
View
13 README.md
@@ -90,7 +90,18 @@ The 'm' is a MatchData.
### Handling outputs
-#### Favorites notifier:
+#### Keyword notifier:
+
+ Earthquake.init do
+ output do |item|
+ next unless item["stream"]
+ if item["text"] =~ /ruby/i
+ notify "#{item["user"]["screen_name"]}: #{item["text"]}"
+ end
+ end
+ end
+
+#### Favorite notifier:
Earthquake.init do
output do |item|

0 comments on commit a2f7d4b

Please sign in to comment.