るりまサーチ (Ruby 2.7.0)

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file path
  4. file open
  5. file lstat

ライブラリ

モジュール

検索結果

Kernel$$DEFAULT_OUTPUT -> IO (40.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