尝试根据https://github.com/tweetstream/tweetstream构建Twitter应用。但是在http://www.rubydoc.info/gems/tweetstream/TweetStream/Client - 我怎么会忽略转发?
TweetStream::Client.new.follow(14252, 53235) do |status|
puts "#{status.text}"
end
# both block arg and actual block given (SyntaxError)
TweetStream::Client.new.follow(14252, 53235).reject(&:retweet) do |status|
puts "#{status.text}"
end
# No errors but also no tweets appearing
TweetStream::Client.new.follow(14252, 53235) do |status|
unless status.retweet
puts "#{status.text}"
end
end