method
with_response
v1_9_3_392 -
Show latest stable
- Class:
Gem::GemcutterUtilities
with_response(resp)public
No documentation available.
# File lib/rubygems/gemcutter_utilities.rb, line 59
def with_response(resp)
case resp
when Net::HTTPSuccess then
if block_given? then
yield resp
else
say resp.body
end
else
say resp.body
terminate_interaction 1
end
end