るりまサーチ

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

別のキーワード

  1. kernel $rs
  2. kernel $7
  3. kernel $ors
  4. kernel $6
  5. kernel $4

検索結果

<< < 1 2 3 4 > >>

Kernel$$FIELD_SEPARATOR -> String | nil (6116.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 (6116.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$$INPUT_LINE_NUMBER -> Integer (6116.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$$INPUT_RECORD_SEPARATOR -> String | nil (6116.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$$NR -> Integer (6116.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 (6116.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 (6116.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 (6116.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 (6116.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 (6116.0)

$$ の別名

...
$
$ の別名

require
"English"

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

絞り込み条件を変える

<< < 1 2 3 4 > >>