module Hub::GitHubAPI::Exceptions

Fake exception type for net/http exception handling. Necessary because net/http may or may not be loaded at the time.

Public Class Methods

===(exception) click to toggle source
# File lib/hub/github_api.rb, line 38
def self.===(exception)
  exception.class.ancestors.map {|a| a.to_s }.include? 'Net::HTTPExceptions'
end