SHARE
TWEET

Untitled

a guest Feb 27th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class TwitterUtils
  2.   include Twitter
  3.   def self.method_missing(method_name, *args, &block)
  4.     Twitter.send(method_name, *args, &block) unless method_name =~ /^get_last_(\d+)_tweets$/
  5.     Twitter.user_timeline(args[0], :count => $1)
  6.   end
  7. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top