$DEFAULT_INPUT -> IO
[permalink][rdoc][edit] [added by English]-
$< の別名
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" ...
$DEFAULT_INPUT -> IO
[permalink][rdoc][edit] [added by English]
$< の別名
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" ...