るりまサーチ

最速Rubyリファレンスマニュアル検索!
319件ヒット [201-300件を表示] (0.016秒)
トップページ > モジュール: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$$PID -> Integer (6116.0)

$$ の別名

...
$
$ の別名

require
"English"

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

Kernel$$PROCESS_ID -> Integer (6116.0)

$$ の別名

...
$
$ の別名

require
"English"

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

Kernel$$RS -> 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$$ARGV -> [String] (6115.0)

$* の別名

...
$
* の別名

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

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

Kernel$$CHILD_STATUS -> Process::Status | nil (6115.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$$DEFAULT_INPUT -> IO (6115.0)

$< の別名

...
$
< の別名

require
"English"
while line = $DEFAULT_INPUT.gets
p line
end
# end of sample.rb

ruby sample.rb < /etc/passwd
# => "hoge:x:500:501::/home/hoge:/bin/bash\n"
......

Kernel$$ERROR_POSITION -> [String] | nil (6115.0)

$@ の別名

...
$
@ の別名

require
"English"
class SomethingError < StandardError; end

begin
raise SomethingError
rescue
p $ERROR_POSITION #=> ["sample.rb:5"]
end...

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

$+ の別名

...
$
+ の別名

require
"English"

r1 = 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>ikko...
...u</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$$MATCH -> String | nil (6115.0)

$& の別名

...
$
& の別名

require
"English"

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

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

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

$' の別名

...
$
' の別名

require
"English"

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

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

絞り込み条件を変える

<< < 1 2 3 4 > >>