るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.016秒)
トップページ > ライブラリ:open-uri[x] > クエリ:ArgumentError[x]

別のキーワード

  1. _builtin argumenterror
  2. on argumenterror
  3. new argumenterror
  4. dump argumenterror
  5. parse argumenterror

モジュール

検索結果

OpenURI.open_uri(name, mode = 'r', perm = nil, options = {}) -> StringIO (14.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...
...す。
「:content_length_proc」と「:progress_proc」はプログレスバーに
利用されることを想定しています。

require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com',
{ :proxy => 'http://proxy.example.com:8000/',...
...、3番目にはプロクシのパスワードを指定します。

:proxy と :proxy_http_basic_authentication を同時に指定すると
ArgumentError
が発生します。

使い方:
//emlist{
:proxy_http_basic_authentication =>
["http://proxy.example.com:8000/", "proxy-user", "prox...

OpenURI.open_uri(name, mode = 'r', perm = nil, options = {}) {|sio| ... } -> nil (14.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...
...す。
「:content_length_proc」と「:progress_proc」はプログレスバーに
利用されることを想定しています。

require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com',
{ :proxy => 'http://proxy.example.com:8000/',...
...、3番目にはプロクシのパスワードを指定します。

:proxy と :proxy_http_basic_authentication を同時に指定すると
ArgumentError
が発生します。

使い方:
//emlist{
:proxy_http_basic_authentication =>
["http://proxy.example.com:8000/", "proxy-user", "prox...