るりまサーチ

最速Rubyリファレンスマニュアル検索!
319件ヒット [201-300件を表示] (0.054秒)

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. kernel require_relative

ライブラリ

モジュール

検索結果

<< < 1 2 3 4 > >>

Kernel$$MATCH -> String | nil (21007.0)

$& の別名

...$& の別名

require
"English"

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

/(foo|bar)/ =~ str
p $MATCH #=> "foo"...

Kernel$$NR -> Integer (21007.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$$OFS -> String | nil (21007.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$$ORS -> String | nil (21007.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$$OUTPUT_FIELD_SEPARATOR -> String | nil (21007.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 (21007.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 (21007.0)

$$ の別名

...$$ の別名

require
"English"

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

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

$' の別名

...$' の別名

require
"English"

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

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

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

$` の別名

...$` の別名

require
"English"

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

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

Kernel$$PROCESS_ID -> Integer (21007.0)

$$ の別名

...$$ の別名

require
"English"

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

絞り込み条件を変える

<< < 1 2 3 4 > >>