Module: GithubPivotalFlow::GitHubAPI::Exceptions

Defined in:
lib/github_pivotal_flow/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



14
15
16
# File 'lib/github_pivotal_flow/github_api.rb', line 14

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