329件ヒット
[1-100件を表示]
(0.150秒)
モジュール
- Kernel (329)
キーワード
-
$ ! (12) -
$ -K (5) -
$ . (12) -
$ > (12) -
$ ? (12) -
$ @ (12) -
$ CFLAGS (12) -
$ CHILD _ STATUS (12) -
$ ERROR _ INFO (12) -
$ IGNORECASE (12) -
$ INPUT _ RECORD _ SEPARATOR (12) -
$ KCODE (12) -
$ LAST _ MATCH _ INFO (12) -
$ LAST _ PAREN _ MATCH (12) -
$ MATCH (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
$ POSTMATCH (12) -
$ PREMATCH (12) -
$ PROCESS _ ID (12) -
$ RS (12) -
$ SAFE (12) -
$ archdir (12) -
$ sitearchdir (12) -
$ srcdir (12) -
$ stderr (12) -
$ stdin (12) -
$ stdout (12) -
$ ~ (12)
検索結果
先頭5件
-
Kernel
$ $ LAST _ MATCH _ INFO -> MatchData | nil (6201.0) -
$~ の別名
...f=https://www.ruby-lang.org/en/about/license.txt>license</a>"
if /<a href=(.+?)>/ =~ str
p $LAST_MATCH_INFO[0] #=> "<a href=https://www.ruby-lang.org/en/about/license.txt>"
p $LAST_MATCH_INFO[1] #=> "https://www.ruby-lang.org/en/about/license.txt"
p $LAST_MATCH_INFO[2] #=> nil
end... -
Kernel
$ $ CFLAGS -> String (6117.0) -
拡張ライブラリをコンパイルするときの C コンパイラのオプションや、 ヘッダファイルのディレクトリを指定する文字列です。
...拡張ライブラリをコンパイルするときの C コンパイラのオプションや、
ヘッダファイルのディレクトリを指定する文字列です。
Kernel#dir_config の検査が成功すると、
この変数の値に " -Idir" が追加されます。... -
Kernel
$ $ CHILD _ STATUS -> Process :: Status | nil (6101.0) -
$? の別名
...$? の別名
require "English"
out = `wget https://www.ruby-lang.org/en/about/license.txt -O - 2>/dev/null`
if $CHILD_STATUS.to_i == 0
print "wget success\n"
out.split(/\n/).each { |line|
printf "%s\n", line
}
else
print "wget failed\n"
end... -
Kernel
$ $ IGNORECASE -> bool (6101.0) -
過去との互換性のために残されていますが、もはや何の意味もありません。
...りません。
値は常に false です。代入しても無視されます。
$= の別名
require "English"
$IGNORECASE = true # => warning: variable $= is no longer effective; ignored
$IGNORECASE # => warning: variable $= is no longer effective
# false... -
Kernel
$ $ INPUT _ RECORD _ SEPARATOR -> String | nil (6101.0) -
$/ の別名
...$/ の別名
require "English"
$INPUT_RECORD_SEPARATOR = '|'
array = []
while line = DATA.gets
array << line
end
p array #=> ["ugo|", "ego|", "fogo\n"]
__END__
ugo|ego|fogo... -
Kernel
$ $ LAST _ PAREN _ MATCH -> String | nil (6101.0) -
$+ の別名
...1 = Regexp.compile("<img src=(http:.+?)>")
r2 = Regexp.compile("<a href=(http|ftp).+?>(.+?)</a>")
while line = DATA.gets
[ r1, r2 ].each {|rep|
rep =~ line
p $+
}
end
__END__
<tr> <td><img src=http://localhost/a.jpg></td> <td>ikkou</td> <td><a href=http://localhost/lin......k.html>link</a></td> </tr>
#enf of sample.rb
$ ruby sample.rb
"http://localhost/a.jpg"
"link"... -
Kernel
$ $ MATCH -> String | nil (6101.0) -
$& の別名
...$& の別名
require "English"
str = 'hoge,foo,bar,hee,hoo'
/(foo|bar)/ =~ str
p $MATCH #=> "foo"... -
Kernel
$ $ POSTMATCH -> String | nil (6101.0) -
$' の別名
...$' の別名
require "English"
str = 'hoge,foo,bar,hee,hoo'
/foo/ =~ str
p $POSTMATCH #=> ",bar,hee,hoo"... -
Kernel
$ $ PREMATCH -> String | nil (6101.0) -
$` の別名
...$` の別名
require "English"
str = 'hoge,foo,bar,hee,hoo'
/foo/ =~ str
p $PREMATCH #=> "hoge,"...