Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Open::URI の rdoc から、何を返すかわかりません。
result = open(url)
URL は XML を返しますが、XML を表示/解析するにはどうすればよいですか?
openIO オブジェクトを返します。次のようなことができます:
open
xml = open(url).read
クラスを尋ねることで、何かが何であるかをいつでも判断できることに注意してください。
open(url).class # => Tempfile