Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TwitterUtils
- include Twitter
- def self.method_missing(method_name, *args, &block)
- Twitter.send(method_name, *args, &block) unless method_name =~ /^get_last_(\d+)_tweets$/
- Twitter.user_timeline(args[0], :count => $1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement