Permalink
Browse files

Added support for respond_to? in Twitter class

  • Loading branch information...
1 parent 6f5dc9a commit ce64c7818f9b62cf91f1fa5dc2e76a9d4205cd2e @fernandezpablo85 fernandezpablo85 committed with Jan 31, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/twitter.rb
View
@@ -20,4 +20,9 @@ def self.method_missing(method, *args, &block)
return super unless client.respond_to?(method)
client.send(method, *args, &block)
end
+
+ # Delegate to Twitter::Client
+ def self.respond_to?(method)
+ return client.respond_to?(method) || super
+ end
end

0 comments on commit ce64c78

Please sign in to comment.