るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.031秒)
トップページ > バージョン:2.4.0[x] > モジュール:Kernel[x] > クエリ:kernel[x] > クエリ:$DEFAULT_INPUT[x]

別のキーワード

  1. kernel $error_info
  2. kernel $program_name
  3. kernel $load_path
  4. kernel $default_input
  5. kernel $process_id

ライブラリ

検索結果

Kernel$$DEFAULT_INPUT -> IO (81325.0)

$< の別名

$< の別名

require "English"
while line = $DEFAULT_INPUT.gets
p line
end
# end of sample.rb

ruby sample.rb < /etc/passwd
# => "hoge:x:500:501::/home/hoge:/bin/bash\n"
...