2件ヒット
[1-2件を表示]
(0.039秒)
モジュール
- Kernel (2)
キーワード
-
$ ARGV (1) -
$ DEFAULT _ INPUT (1)
検索結果
-
Kernel
$ $ ARGV -> [String] (343.0) -
$* の別名
...$* の別名
require "English"
p $ARGV
# end of sample.rb
ruby sample.rb 31 /home/hoge/fuga.txt
#=> ["31", "/home/hoge/fuga.txt"]... -
Kernel
$ $ DEFAULT _ INPUT -> IO (325.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"
......