るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.016秒)
トップページ > モジュール:Kernel[x] > ライブラリ:English[x] > クエリ:kernel[x] > クエリ:$default_input[x]

別のキーワード

  1. kernel $default_output
  2. kernel $error_info
  3. kernel $stdin
  4. kernel $debug

検索結果

Kernel$$DEFAULT_INPUT -> IO (15110.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"
......