るりまサーチ

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

別のキーワード

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

ライブラリ

検索結果

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