Module: Semian::NetHTTP::ClassMethods

Defined in:
lib/semian/net_http.rb

Overview

Net::HTTP can throw many different errors, this tries to capture most of them

Instance Method Summary collapse

Instance Method Details

#new(*args, semian: true) ⇒ Object



47
48
49
50
51
# File 'lib/semian/net_http.rb', line 47

def new(*args, semian: true)
  http = super(*args)
  http.instance_variable_set(:@semian_enabled, semian)
  http
end