るりまサーチ

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

別のキーワード

  1. _builtin gets
  2. irb/input-method gets
  3. io gets
  4. argf.class gets
  5. csv gets

ライブラリ

検索結果

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