Module: Hub::Commands::HTTPExceptions

Defined in:
lib/hub/commands.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



1058
1059
1060
# File 'lib/hub/commands.rb', line 1058

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