Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

wrote README about 'Replacing the output for tweets'

  • Loading branch information...
commit b343ede3c6690681d4bfb5760c9c708dd0752bf6 1 parent e7943c0
@jugyo jugyo authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
10 README.md
@@ -216,6 +216,16 @@ The 'm' is a MatchData.
end
end
+### Replacing the output for tweets
+
+ Earthquake.init do
+ output :tweet do |item|
+ next unless item["text"]
+ name = item["user"]["screen_name"]
+ puts "#{name.c(color_of(name))}: foo"
+ end
+ end
+
### Defining completion
Earthquake.init do
Please sign in to comment.
Something went wrong with that request. Please try again.