Module: Hub::GitHubAPI::Exceptions
- Defined in:
- lib/hub/github_api.rb
Overview
Fake exception type for net/http exception handling. Necessary because net/http may or may not be loaded at the time.
Class Method Summary collapse
Class Method Details
.===(exception) ⇒ Object
35 36 37 |
# File 'lib/hub/github_api.rb', line 35 def self.===(exception) exception.class.ancestors.map {|a| a.to_s }.include? 'Net::HTTPExceptions' end |