るりまサーチ

最速Rubyリファレンスマニュアル検索!
456件ヒット [401-456件を表示] (0.058秒)
トップページ > クエリ:string[x] > クエリ:Ruby[x] > クエリ:String[x] > モジュール:Kernel[x] > 種類:変数[x]

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub

ライブラリ

キーワード

検索結果

<< < ... 3 4 5 >>

Kernel$$OUTPUT_RECORD_SEPARATOR -> String | nil (212.0)

$\ の別名

...$\ の別名

require "English"

print "hoge\nhuga\n"
$OUTPUT_RECORD_SEPARATOR = "\n"
print "fuge"
print "ugo"
# end of sample.rb

ruby
sample.rb
hoge
huga
fuge
ugo...

Kernel$$, -> String | nil (210.0)

デフォルトの出力フィールド区切り文字列です。 Array#join で引数を省略した場合と、 Kernel.#print の各引数の間で出力されます。

...ド区切り文字列です。
Array#join で引数を省略した場合と、
Kernel
.#print の各引数の間で出力されます。

デフォルト値は nil で、空文字列と同じ結果になります。

Ruby
2.7からは nil 以外に変更することは非推奨になったため、
n...

Kernel$$ARGV -> [String] (210.0)

$* の別名

...$* の別名

require "English"
p $ARGV
# end of sample.rb

ruby
sample.rb 31 /home/hoge/fuga.txt
#=> ["31", "/home/hoge/fuga.txt"]...

Kernel$$LAST_PAREN_MATCH -> String | nil (210.0)

$+ の別名

...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/link.html>link</a></td> </tr>
#enf of sample.rb

$ ruby sample.rb
"http://localhost/a.jpg"
"link"...

Kernel$$LAST_READ_LINE -> String | nil (210.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"...

絞り込み条件を変える

<< < ... 3 4 5 >>