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



38
39
40
# File 'lib/hub/github_api.rb', line 38

def self.===(exception)
  exception.class.ancestors.map {|a| a.to_s }.include? 'Net::HTTPExceptions'
end