るりまサーチ

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

ライブラリ

検索結果

Kernel$$DEFAULT_INPUT -> IO (18118)

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

...$< の別名

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"
......