status -> [String][permalink][rdoc]-
対象となるリソースのステータスコードと reason phrase を文字列の配列として返します。
例:
require 'open-uri' p open('http://example.com/').status #=> ["200", "OK"]
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
status -> [String][permalink][rdoc]対象となるリソースのステータスコードと reason phrase を文字列の配列として返します。
例:
require 'open-uri'
p open('http://example.com/').status #=> ["200", "OK"]