るりまサーチ

最速Rubyリファレンスマニュアル検索!
275件ヒット [201-275件を表示] (0.012秒)
トップページ > モジュール:Kernel[x] > ライブラリ:English[x]

検索結果

<< < 1 2 3 >>

Kernel$$OUTPUT_FIELD_SEPARATOR -> String | nil (3.0)

$, の別名

...$, の別名

require "English"

array = %w|hoge fuga ugo bar foo|
p array.join #=> "hogefugaugobarfoo"
$OUTPUT_FIELD_SEPARATOR = ","
p array.join #=> "hoge,fuga,ugo,bar,foo"...

Kernel$$OUTPUT_RECORD_SEPARATOR -> String | nil (3.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$$PID -> Integer (3.0)

$$ の別名

...$$ の別名

require "English"

p sprintf("something%s", $PID) #=> "something5543" など...

Kernel$$POSTMATCH -> String | nil (3.0)

$' の別名

...$' の別名

require "English"

str = 'hoge,foo,bar,hee,hoo'

/foo/ =~ str
p $POSTMATCH #=> ",bar,hee,hoo"...

Kernel$$PREMATCH -> String | nil (3.0)

$` の別名

...$` の別名

require "English"

str = 'hoge,foo,bar,hee,hoo'

/foo/ =~ str
p $PREMATCH #=> "hoge,"...

絞り込み条件を変える

Kernel$$PROCESS_ID -> Integer (3.0)

$$ の別名

...$$ の別名

require "English"

p sprintf("something%s", $PID) #=> "something5543" など...

Kernel$$RS -> String | nil (3.0)

$/ の別名

...$/ の別名

require "English"

$INPUT_RECORD_SEPARATOR = '|'
array = []
while line = DATA.gets
array << line
end
p array #=> ["ugo|", "ego|", "fogo\n"]

__END__
ugo|ego|fogo...
<< < 1 2 3 >>