るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.034秒)
トップページ > クエリ:read[x] > バージョン:2.1.0[x] > クエリ:close[x] > クエリ:dup[x] > 種類:変数[x]

別のキーワード

  1. stringio read
  2. _builtin read
  3. io read
  4. csv read
  5. csv close_read

ライブラリ

モジュール

検索結果

Kernel$$DEFAULT_OUTPUT -> IO (58.0)

$> の別名

$> の別名

require "English"

dout = $DEFAULT_OUTPUT.dup
$DEFAULT_OUTPUT.reopen("out.txt", "w")
print "foo"
$DEFAULT_OUTPUT.close
$DEFAULT_OUTPUT = dout
p "bar" # => bar
p File.read("out.txt") #=> foo