3件ヒット
[1-3件を表示]
(0.023秒)
別のキーワード
モジュール
- Kernel (3)
キーワード
-
$ IGNORECASE (1) -
$ INPUT _ LINE _ NUMBER (1) -
$ NR (1)
検索結果
-
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (18307.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 (9007.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
$ $ IGNORECASE -> bool (307.0) -
過去との互換性のために残されていますが、もはや何の意味もありません。
...ますが、もはや何の意味もありません。
値は常に false です。代入しても無視されます。
$= の別名
require "English"
$IGNORECASE = true # => warning: variable $= is no longer effective; ignored
$IGNORECASE # => warning: variable $= is no longer effe...