るりまサーチ (Ruby 3.2)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.023秒)

別のキーワード

  1. english $ofs
  2. kernel $8
  3. kernel $9
  4. kernel $6
  5. kernel $7

ライブラリ

クラス

モジュール

検索結果

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

CGI#print(*strings) (37.0)

@todo

@todo

引数の文字列を標準出力に出力します。
cgi.print は $DEFAULT_OUTPUT.print と等価です。

例:
cgi = CGI.new
cgi.print "This line is a part of content body.\r\n"