るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.019秒)
トップページ > クエリ:StringIO[x] > モジュール:OpenURI[x] > 種類:特異メソッド[x]

別のキーワード

  1. stringio read
  2. stringio sysread
  3. stringio readpartial
  4. stringio set_encoding
  5. stringio each

ライブラリ

検索結果

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

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

... StringIO オブジェクト
として返します。

ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返します。

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

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

options には Hash を与えます。理解するハッシュの
キーは以下のシンボル、
* :proxy
* :progress_proc
* :content_length_proc
* :http_basic_au...
...nt_length_proc」と「:progress_proc」はプログレスバーに
利用されることを想定しています。

require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com',
{ :proxy => 'http://proxy.example.com:8000/',
:http_basic_...

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

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

... StringIO オブジェクト
として返します。

ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返します。

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

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

options には Hash を与えます。理解するハッシュの
キーは以下のシンボル、
* :proxy
* :progress_proc
* :content_length_proc
* :http_basic_au...
...nt_length_proc」と「:progress_proc」はプログレスバーに
利用されることを想定しています。

require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com',
{ :proxy => 'http://proxy.example.com:8000/',
:http_basic_...