Skip to content

Commit

Permalink
Added support for respond_to? in Twitter class
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandezpablo85 authored and sferik committed Jan 31, 2011
1 parent 6f5dc9a commit ce64c78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/twitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.