るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.017秒)
トップページ > モジュール:OpenURI[x] > クエリ:parse[x] > クエリ:argumenterror[x]

別のキーワード

  1. time parse
  2. parser parse
  3. csv parse
  4. ripper parse
  5. psych parse_stream

ライブラリ

検索結果

OpenURI.open_uri(name, mode = 'r', perm = nil, options = {}) -> StringIO (25.0)

URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。

...の終了時に StringIO は close されます。nil を返します。

require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com')
p sio.last_modified
puts sio.read

OpenURI
.open_uri('http://www.example.com'){|sio| sio.read }

options には Hash を与えます。理解する...
...えます。
//emlist{
文字列: "http://proxy.example.com:8000/" のようなプロクシの URI。
URI オブジェクト: URI.parse("http://proxy.example.com:8000/") のようなプロクシの URI オブジェクト。
true: Proxy を環境変数などから見つ...
...ntication を同時に指定すると
ArgumentError
が発生します。

使い方:
//emlist{
:proxy_http_basic_authentication =>
["http://proxy.example.com:8000/", "proxy-user", "proxy-password"]
:proxy_http_basic_authentication =>
[URI.parse("http://proxy.example.com:8000/"), "...

OpenURI.open_uri(name, mode = 'r', perm = nil, options = {}) {|sio| ... } -> nil (25.0)

URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。

...の終了時に StringIO は close されます。nil を返します。

require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com')
p sio.last_modified
puts sio.read

OpenURI
.open_uri('http://www.example.com'){|sio| sio.read }

options には Hash を与えます。理解する...
...えます。
//emlist{
文字列: "http://proxy.example.com:8000/" のようなプロクシの URI。
URI オブジェクト: URI.parse("http://proxy.example.com:8000/") のようなプロクシの URI オブジェクト。
true: Proxy を環境変数などから見つ...
...ntication を同時に指定すると
ArgumentError
が発生します。

使い方:
//emlist{
:proxy_http_basic_authentication =>
["http://proxy.example.com:8000/", "proxy-user", "proxy-password"]
:proxy_http_basic_authentication =>
[URI.parse("http://proxy.example.com:8000/"), "...