るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. english $fs
  2. english $nr
  3. english $rs
  4. english $pid
  5. english $ofs

検索結果

English (18019.0)

特殊変数 $! などに英語名の別名 ($ERROR_INFO など)をつけます。

特殊変数 $! などに英語名の別名 ($ERROR_INFO など)をつけます。

例:

p $/ #=> "\n"
p $RS #=> nil

require 'English'
p $RS #=> "\n"

Encoding::SJIS_DOCOMO -> Encoding (37.0)

SJIS-DoCoMo エンコーディングです。

SJIS-DoCoMo エンコーディングです。

Shift_JIS, CP932 の亜種です。
DoCoMo の携帯電話で使われる絵文字が含まれています。

@see https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/basic/index.html,
https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/extention/index.html

Encoding::SJIS_DoCoMo -> Encoding (37.0)

SJIS-DoCoMo エンコーディングです。

SJIS-DoCoMo エンコーディングです。

Shift_JIS, CP932 の亜種です。
DoCoMo の携帯電話で使われる絵文字が含まれています。

@see https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/basic/index.html,
https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/extention/index.html

Encoding::UTF8_DOCOMO -> Encoding (37.0)

UTF8-DoCoMo エンコーディングです。

UTF8-DoCoMo エンコーディングです。

UTF-8 の亜種です。
DoCoMo の携帯電話で使われる絵文字が含まれています。


@see https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/basic/index.html,
https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/extention/index.html

Encoding::UTF8_DoCoMo -> Encoding (37.0)

UTF8-DoCoMo エンコーディングです。

UTF8-DoCoMo エンコーディングです。

UTF-8 の亜種です。
DoCoMo の携帯電話で使われる絵文字が含まれています。


@see https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/basic/index.html,
https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/extention/index.html

絞り込み条件を変える

Object::SCRIPT_LINES__ -> Hash (37.0)

ソースファイル別にまとめられたソースコードの各行。

ソースファイル別にまとめられたソースコードの各行。

この定数は、デフォルトでは定義されていません。
この定数がハッシュとして定義された後にソースがコンパイルされると、
そのソースファイル名をキーに、
ソースを行毎に分割した配列を値にしたハッシュ要素が設定されます。

この定数はデバッガ (debug) などで利用されています。

なお、 $SAFE レベルが 0 でなければ有効にはなりません。
また、 Kernel.#eval によるコンパイルは対象にはなりません。


例:
require 'pp'
SCRIPT_LINES__ = {}
require 'Eng...

BasicObject#method_missing(name, *args) -> object (19.0)

呼びだされたメソッドが定義されていなかった時、Rubyインタプリタがこのメソッド を呼び出します。

呼びだされたメソッドが定義されていなかった時、Rubyインタプリタがこのメソッド
を呼び出します。

呼び出しに失敗したメソッドの名前 (Symbol) が name に
その時の引数が第二引数以降に渡されます。

デフォルトではこのメソッドは例外 NoMethodError を発生させます。


@param name 未定義メソッドの名前(シンボル)です。
@param args 未定義メソッドに渡された引数です。
@return ユーザー定義の method_missing メソッドの返り値が未定義メソッドの返り値で
あるかのように見えます。

//emlist[例][ruby]{...

Kernel$$ARGV -> [String] (19.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 (19.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 (19.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$$DEFAULT_OUTPUT -> IO (19.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$$ERROR_INFO -> Exception | nil (19.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$$ERROR_POSITION -> [String] | nil (19.0)

$@ の別名

$@ の別名

require "English"
class SomethingError < StandardError; end

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

Kernel$$FIELD_SEPARATOR -> String | nil (19.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 (19.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$$IGNORECASE -> bool (19.0)

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

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

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

$= の別名

require "English"

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

Kernel$$INPUT_LINE_NUMBER -> Integer (19.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 (19.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$$LAST_MATCH_INFO -> MatchData | nil (19.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/license.t...

Kernel$$LAST_PAREN_MATCH -> String | nil (19.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>ikkou</td>...

絞り込み条件を変える

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

$& の別名

$& の別名

require "English"

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

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

Kernel$$NR -> Integer (19.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 (19.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 (19.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 (19.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 (19.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 (19.0)

$$ の別名

$$ の別名

require "English"

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

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

$' の別名

$' の別名

require "English"

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

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

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

$` の別名

$` の別名

require "English"

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

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

Kernel$$PROCESS_ID -> Integer (19.0)

$$ の別名

$$ の別名

require "English"

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

絞り込み条件を変える

Kernel$$RS -> String | nil (19.0)

$/ の別名

$/ の別名

require "English"

$INPUT_RECORD_SEPARATOR = '|'
array = []
while line = DATA.gets
array << line
end
p array #=> ["ugo|", "ego|", "fogo\n"]

__END__
ugo|ego|fogo

WIN32OLE.locale=(lcid) -> nil (19.0)

WIN32OLEがオートメーション呼び出し時に設定するロケール識別子(LCID)を設 定します。

WIN32OLEがオートメーション呼び出し時に設定するロケール識別子(LCID)を設
定します。

OLEオートメーションでは、UNIXで利用される"ja_JP"などの国名と言語名を「_」
で接続した文字列ではなく、32ビット整数で示します。32ビットの内訳は上位
16ビットが予約領域で0、下位16ビットが言語ID(LANGID)です。LANGIDは、0〜
9ビットでプライマリ言語ID、10〜15ビットでサブ言語IDを示します。

@param lcid 新たに設定するロケール識別子を整数で指定します。

@raise WIN32OLERuntimeError システムにインストールされてい...