317件ヒット
[1-100件を表示]
(0.043秒)
別のキーワード
種類
- 変数 (240)
- 定数 (48)
- ライブラリ (12)
- インスタンスメソッド (12)
- 文書 (5)
クラス
- BasicObject (12)
- Encoding (48)
モジュール
- Kernel (240)
キーワード
-
$ ARGV (12) -
$ ERROR _ POSITION (12) -
$ FIELD _ SEPARATOR (12) -
$ FS (12) -
$ IGNORECASE (12) -
$ INPUT _ LINE _ NUMBER (12) -
$ INPUT _ RECORD _ SEPARATOR (12) -
$ LAST _ PAREN _ MATCH (12) -
$ LAST _ READ _ LINE (12) -
$ MATCH (12) -
$ NR (12) -
$ OFS (12) -
$ ORS (12) -
$ OUTPUT _ FIELD _ SEPARATOR (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
$ PID (12) -
$ POSTMATCH (12) -
$ PREMATCH (12) -
$ PROCESS _ ID (12) -
$ RS (12) -
NEWS for Ruby 3
. 0 . 0 (5) -
SJIS
_ DOCOMO (12) -
SJIS
_ DoCoMo (12) -
UTF8
_ DOCOMO (12) -
UTF8
_ DoCoMo (12) -
method
_ missing (12)
検索結果
先頭5件
-
English (44006.0)
-
特殊変数 $! などに英語名の別名 ($ERROR_INFO など)をつけます。
...特殊変数 $! などに英語名の別名 ($ERROR_INFO など)をつけます。
例:
p $/ #=> "\n"
p $RS #=> nil
require 'English'
p $RS #=> "\n"... -
Kernel
$ $ ARGV -> [String] (14106.0) -
$* の別名
...$* の別名
require "English"
p $ARGV
# end of sample.rb
ruby sample.rb 31 /home/hoge/fuga.txt
#=> ["31", "/home/hoge/fuga.txt"]... -
Kernel
$ $ IGNORECASE -> bool (14106.0) -
過去との互換性のために残されていますが、もはや何の意味もありません。
...りません。
値は常に false です。代入しても無視されます。
$= の別名
require "English"
$IGNORECASE = true # => warning: variable $= is no longer effective; ignored
$IGNORECASE # => warning: variable $= is no longer effective
# false... -
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (8112.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
$ $ LAST _ READ _ LINE -> String | nil (8112.0) -
$_ の別名
...$_ の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
ruby -rEnglish -ne'p $LAST_READ_LINE' a.txt
#=>
"1 e\n"
"2 f\n"
"3 g\n"
"4 h\n"
"5 i\n"... -
Kernel
$ $ NR -> Integer (8112.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
$ $ ERROR _ POSITION -> [String] | nil (8106.0) -
$@ の別名
...$@ の別名
require "English"
class SomethingError < StandardError; end
begin
raise SomethingError
rescue
p $ERROR_POSITION #=> ["sample.rb:5"]
end... -
Kernel
$ $ FIELD _ SEPARATOR -> String | nil (8106.0) -
$; の別名
...$; の別名
require "English"
str = "hoge,fuga,ugo,bar,foo"
p str.split #=> ["hoge,fuga,ugo,bar,foo"]
$FIELD_SEPARATOR = ","
p str.split #=> ["hoge", "fuga", "ugo", "bar", "foo"]... -
Kernel
$ $ FS -> String | nil (8106.0) -
$; の別名
...$; の別名
require "English"
str = "hoge,fuga,ugo,bar,foo"
p str.split #=> ["hoge,fuga,ugo,bar,foo"]
$FIELD_SEPARATOR = ","
p str.split #=> ["hoge", "fuga", "ugo", "bar", "foo"]...