るりまサーチ

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

別のキーワード

  1. mkmf try_cpp
  2. mkmf egrep_cpp
  3. kernel try_cpp
  4. kernel egrep_cpp
  5. mkmf cpp_command

検索結果

<< < 1 2 3 >>

Kernel$$ERROR_INFO -> Exception | nil (21115.0)

$! の別名

...$! の別名

require "English"
class SomethingError < StandardError; end

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

Kernel$$CHILD_STATUS -> Process::Status | nil (21103.0)

$? の別名

...$? の別名

require "English"

out = `wget https://www.ruby-lang.org/en/about/license.txt -O - 2>/dev/null`

if $CHILD_STATUS.to_i == 0
p
rint "wget success\n"
out.split(/\n/).each { |line|
printf
"%s\n", line
}
else
p
rint "wget failed\n"
end...

Kernel$$LAST_MATCH_INFO -> MatchData | nil (21021.0)

$~ の別名

...uire "English"

str = "<a href=https://www.ruby-lang.org/en/about/license.txt>license</a>"

if /<a href=(.+?)>/ =~ str
p
$LAST_MATCH_INFO[0] #=> "<a href=https://www.ruby-lang.org/en/about/license.txt>"
p
$LAST_MATCH_INFO[1] #=> "https://www.ruby-lang.org/en/about/license.txt"
p
$LAS...

Kernel$$OFS -> String | nil (21015.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$$ARGV -> [String] (21009.0)

$* の別名

...$* の別名

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

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

絞り込み条件を変える

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

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

$& の別名

...$& の別名

require "English"

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

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