4件ヒット
[1-4件を表示]
(0.055秒)
モジュール
- Kernel (4)
キーワード
-
$ INPUT _ LINE _ NUMBER (1) -
$ NR (1) -
$ PID (1) -
$ PROCESS _ ID (1)
検索結果
先頭4件
-
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (63313.0) -
$. の別名
...$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5... -
Kernel
$ $ NR -> Integer (63313.0) -
$. の別名
...$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5... -
Kernel
$ $ PID -> Integer (63313.0) -
$$ の別名
...$$ の別名
require "English"
p sprintf("something%s", $PID) #=> "something5543" など... -
Kernel
$ $ PROCESS _ ID -> Integer (63313.0) -
$$ の別名
...$$ の別名
require "English"
p sprintf("something%s", $PID) #=> "something5543" など...