Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support for respond_to? in Twitter class

  • Loading branch information...
commit ce64c7818f9b62cf91f1fa5dc2e76a9d4205cd2e 1 parent 6f5dc9a
@fernandezpablo85 fernandezpablo85 authored committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/twitter.rb
View
5 lib/twitter.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.