1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Declare an ivar via #initialize

This commit removes below interpreter warning.

* warning: instance variable @{ivar} not initialized
This commit is contained in:
Kenichi Kamiya 2013-04-03 00:59:43 +09:00
parent c67b6a95a4
commit 2559951fa0

View file

@ -85,6 +85,7 @@ module RestClient
def initialize response = nil, initial_response_code = nil
@response = response
@message = nil
@initial_response_code = initial_response_code
# compatibility: this make the exception behave like a Net::HTTPResponse