るりまサーチ

最速Rubyリファレンスマニュアル検索!
264件ヒット [1-100件を表示] (0.033秒)
トップページ > モジュール:Kernel[x] > クエリ:$[x] > クエリ:require[x] > ライブラリ:English[x]

別のキーワード

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

検索結果

<< 1 2 3 > >>

Kernel$$DEFAULT_OUTPUT -> IO (6134.0)

$> の別名

...
$
> の別名

require
"English"

dout = $DEFAULT_OUTPUT.dup
$
DEFAULT_OUTPUT.reopen("out.txt", "w")
print "foo"
$
DEFAULT_OUTPUT.close
$
DEFAULT_OUTPUT = dout
p "bar" # => bar
p File.read("out.txt") #=> foo...

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

$~ の別名

...
$
~ の別名

require
"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/lic...
...ense.txt"
p $LAST_MATCH_INFO[2] #=> nil
end...

Kernel$$ERROR_INFO -> Exception | nil (6122.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$$IGNORECASE -> bool (6122.0)

過去との互換性のために残されていますが、もはや何の意味もありません。

...りません。

値は常に false です。代入しても無視されます。

$
= の別名

require
"English"

$
IGNORECASE = true # => warning: variable $= is no longer effective; ignored
$
IGNORECASE # => warning: variable $= is no longer effective
# false...

Kernel$$FIELD_SEPARATOR -> String | nil (6117.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 (6117.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 (6117.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 (6117.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 (6117.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 (6117.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"...

絞り込み条件を変える

<< 1 2 3 > >>