4257件ヒット
[1-100件を表示]
(0.419秒)
クラス
- Array (55)
- Class (22)
- Complex (33)
- Data (10)
- Dir (345)
- Encoding (110)
-
Encoding
:: Converter (66) - Enumerator (23)
-
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (11) -
Errno
:: EXXX (22) - Exception (29)
- Fiber (25)
- File (708)
-
File
:: Stat (11) - FrozenError (12)
- Hash (60)
- IO (473)
- Integer (10)
- KeyError (24)
- Module (52)
- Mutex (2)
- NameError (17)
- NoMethodError (17)
- Object (11)
- Proc (18)
- Random (103)
- Range (11)
- Regexp (88)
- RubyVM (1)
-
RubyVM
:: InstructionSequence (106) - SignalException (33)
- String (39)
- Struct (47)
- SystemCallError (44)
- SystemExit (11)
- Thread (203)
-
Thread
:: ConditionVariable (9) -
Thread
:: Mutex (9) -
Thread
:: Queue (12) -
Thread
:: SizedQueue (9) - ThreadGroup (11)
- Time (171)
- TracePoint (32)
モジュール
- GC (115)
-
GC
:: Profiler (88) - Process (95)
-
RubyVM
:: AbstractSyntaxTree (24) -
RubyVM
:: MJIT (18) - Warning (18)
キーワード
- === (11)
- DEBUG (11)
- DEBUG= (11)
- [] (60)
- []= (16)
- abort (22)
-
abort
_ on _ exception (11) -
abort
_ on _ exception= (11) -
absolute
_ path (11) -
absolute
_ path? (5) - aliases (11)
-
asciicompat
_ encoding (22) - assoc (11)
- at (47)
- atime (11)
- basename (11)
- binread (11)
- binwrite (11)
- birthtime (10)
- blockdev? (11)
- bytes (6)
- chardev? (11)
- chdir (22)
- children (14)
- chmod (11)
- chown (11)
- clear (22)
- clone (11)
- compatible? (11)
- compile (22)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) - constants (11)
-
copy
_ stream (22) - count (11)
- ctime (11)
- current (14)
-
default
_ external (11) -
default
_ external= (11) -
default
_ internal (11) -
default
_ internal= (11) - define (4)
-
define
_ method (22) - delete (44)
-
delete
_ if (22) - directory? (11)
- dirname (11)
- disable (22)
- disasm (11)
- disassemble (11)
- dup (3)
- each (22)
-
each
_ child (28) -
each
_ key (22) -
each
_ pair (22) -
each
_ value (22) - empty? (27)
- enable (22)
- enabled? (17)
- entries (22)
- escape (11)
- except (3)
- exception (11)
- exclusive (11)
- exec (11)
- executable? (11)
-
executable
_ real? (11) - exist? (22)
- exists? (18)
- exit (22)
- exit! (11)
- extname (11)
- fetch (33)
- file? (11)
- filter (12)
- filter! (12)
- find (11)
- fnmatch (11)
- fnmatch? (11)
-
for
_ fd (11) - foreach (66)
- fork (33)
- freeze (5)
- ftype (11)
- getwd (11)
- glob (22)
- gm (22)
- grpowned? (11)
-
handle
_ interrupt (11) -
has
_ key? (11) -
has
_ value? (11) - home (22)
- identical? (11)
- include (11)
- include? (11)
- index (7)
- inspect (22)
- invert (11)
- join (11)
-
keep
_ if (22) - key (11)
- key? (11)
- keys (11)
-
keyword
_ init? (3) - kill (11)
-
last
_ match (22) -
last
_ status (7) -
latest
_ gc _ info (22) - lchmod (11)
- lchown (11)
- left (11)
- length (11)
- link (11)
- list (22)
-
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) - local (22)
-
locale
_ charmap (11) - lstat (11)
- lutime (7)
- main (11)
- member? (11)
- members (13)
- merge! (10)
- mkdir (11)
- mkfifo (9)
- mktime (22)
- mtime (11)
-
name
_ list (11) - nesting (11)
- new (650)
-
new
_ seed (11) - now (11)
- of (19)
- open (88)
- owned? (11)
- parse (8)
-
parse
_ file (8) - pass (11)
- path (11)
- pause (6)
-
pending
_ interrupt? (11) - pipe (88)
- pipe? (11)
- polar (11)
- popen (154)
- private (23)
- produce (5)
- public (19)
- pwd (11)
- quote (11)
- rand (22)
- rassoc (11)
-
raw
_ data (11) -
raw
_ seed (2) - read (33)
- readable? (11)
-
readable
_ real? (11) - readlines (33)
- readlink (11)
- realdirpath (11)
- realpath (11)
- rect (11)
- rectangular (11)
- rehash (11)
- reject (22)
- reject! (22)
- rename (11)
- replace (11)
- report (11)
-
report
_ on _ exception (8) -
report
_ on _ exception= (8) -
resolve
_ feature _ path (1) - result (11)
- resume (6)
- rmdir (11)
-
ruby2
_ keywords _ hash? (5) -
search
_ convpath (11) - select (33)
- select! (22)
- setgid? (11)
- setuid? (11)
- shift (11)
- size (22)
- size? (11)
- slice (6)
- socket? (11)
- spawn (11)
- split (11)
- sqrt (7)
- srand (22)
- start (22)
- stat (43)
- state (11)
- sticky? (11)
- stop (11)
- store (11)
- stress (11)
- stress= (11)
- symlink (11)
- symlink? (11)
- sysopen (11)
-
to
_ a (11) -
to
_ h (17) -
to
_ hash (11) -
to
_ s (22) -
to
_ tty? (7) -
total
_ time (11) - trace (11)
- truncate (11)
-
try
_ convert (58) - umask (22)
- union (11)
- unlink (22)
- update (22)
- urandom (7)
-
used
_ modules (8) - using (11)
- utc (22)
- utime (11)
- value? (11)
- values (11)
-
values
_ at (11) -
verify
_ compaction _ references (5) - warn (8)
-
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (22)
- yield (11)
- zero? (11)
検索結果
先頭5件
-
GC
. verify _ compaction _ references(toward: nil , double _ heap: nil) -> Hash (20203.0) -
コンパクションの参照の一貫性を検証します。
...系依存 (CRuby 特有) です。
コンパクション中に移動されたオブジェクトは T_MOVED オブジェクトに置き換えられます。
コンパクション後には T_MOVED を参照するオブジェクトは存在するべきではありません。
この関数は全ての......MOVED への参照をもつオブジェクトがあれば、マークスタックにプッシュされて、
SEGV が起きるでしょう。
@param toward nil か :empty を指定します。
@param double_heap ヒープサイズを2倍にするかどうかを真偽値で指定します。
@retur......n GC.compact の返り値と同じです。
@see GC.compact... -
Encoding
:: Converter . asciicompat _ encoding(encoding) -> Encoding | nil (17303.0) -
同じ文字集合を持つ ASCII 互換エンコーディングを返します。
...集合を持つ ASCII 互換エンコーディングを返します。
@param string エンコーディング名
@param encoding エンコーディングオブジェクト
@return ASCII 互換エンコーディングのオブジェクトか nil
引数とエンコーディングと同じ文字集......ングでない場合は nil を返します。
//emlist[][ruby]{
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP>
Encoding::Converter.asciicompat_encoding("UTF-16BE") #=> #<Encoding:UTF-8>
Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
//}... -
Exception
. exception(error _ message = nil) -> Exception (17239.0) -
例外オブジェクトを生成して返します。
...@param error_message エラーメッセージを表す文字列を指定します。このメッセージは
属性 Exception#message の値になり、デフォルトの例外ハンドラで表示されます。
//emlist[例][ruby]{
e = Exception.new("some message")
p e......# => #<Exception: some message>
p e.message # => "some message"
//}
//emlist[例][ruby]{
e = Exception.exception("some message")
p e # => #<Exception: some message>
p e.message # => "some message"
//}... -
Thread
. report _ on _ exception -> bool (17215.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...を $stderr に報告します。
デフォルトは false です。
Thread.new { 1.times { raise } }
は $stderr に以下のように出力します:
#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block......in <main>'
1: from -e:1:in `times'
これによってスレッドのエラーを早期に捕捉できるようになります。
いくつかのケースでは、この出力を望まないかもしれません。
出力を抑制するには複数の方法があります:
* 例外が......で rescue して、
その例外でスレッドが終了しないようにするのがより良い方法です。
* Thread#join や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレ......容を $stderr に報告します。
デフォルトは true です。
Thread.new { 1.times { raise } }
は $stderr に以下のように出力します:
#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `blo......ck in <main>'
1: from -e:1:in `times'
これによってスレッドのエラーを早期に捕捉できるようになります。
いくつかのケースでは、この出力を望まないかもしれません。
出力を抑制するには複数の方法があります:
* 例外が... -
Thread
. report _ on _ exception=(newstate) (17215.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...を $stderr に報告します。
デフォルトは false です。
Thread.new { 1.times { raise } }
は $stderr に以下のように出力します:
#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block......in <main>'
1: from -e:1:in `times'
これによってスレッドのエラーを早期に捕捉できるようになります。
いくつかのケースでは、この出力を望まないかもしれません。
出力を抑制するには複数の方法があります:
* 例外が......で rescue して、
その例外でスレッドが終了しないようにするのがより良い方法です。
* Thread#join や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレ......容を $stderr に報告します。
デフォルトは true です。
Thread.new { 1.times { raise } }
は $stderr に以下のように出力します:
#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `blo......ck in <main>'
1: from -e:1:in `times'
これによってスレッドのエラーを早期に捕捉できるようになります。
いくつかのケースでは、この出力を望まないかもしれません。
出力を抑制するには複数の方法があります:
* 例外が... -
Encoding
:: Converter . asciicompat _ encoding(string) -> Encoding | nil (17203.0) -
同じ文字集合を持つ ASCII 互換エンコーディングを返します。
...集合を持つ ASCII 互換エンコーディングを返します。
@param string エンコーディング名
@param encoding エンコーディングオブジェクト
@return ASCII 互換エンコーディングのオブジェクトか nil
引数とエンコーディングと同じ文字集......ングでない場合は nil を返します。
//emlist[][ruby]{
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP>
Encoding::Converter.asciicompat_encoding("UTF-16BE") #=> #<Encoding:UTF-8>
Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
//}... -
File
. readable _ real?(path) -> bool (17203.0) -
FileTest.#readable_real? と同じです。
...FileTest.#readable_real? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
Exception
. new(error _ message = nil) -> Exception (17139.0) -
例外オブジェクトを生成して返します。
...@param error_message エラーメッセージを表す文字列を指定します。このメッセージは
属性 Exception#message の値になり、デフォルトの例外ハンドラで表示されます。
//emlist[例][ruby]{
e = Exception.new("some message")
p e......# => #<Exception: some message>
p e.message # => "some message"
//}
//emlist[例][ruby]{
e = Exception.exception("some message")
p e # => #<Exception: some message>
p e.message # => "some message"
//}... -
ENV
. length -> Integer (17103.0) -
環境変数の数を返します。
環境変数の数を返します。 -
ENV
. size -> Integer (17103.0) -
環境変数の数を返します。
環境変数の数を返します。 -
Dir
. children(path , encoding: enc) -> [String] (14303.0) -
ディレクトリ path に含まれるファイルエントリ名のうち、 "." と ".." をのぞいた配列を返します。
...す。
@param encoding ディレクトリのエンコーディングを文字列か
Encoding オブジェクトで指定します。省略した場合は
ファイルシステムのエンコーディングと同じになります。
@raise Errno::EXXX 失敗した......場合に発生します。
//emlist[例][ruby]{
Dir.children('.') #=> ["bar", "foo"]
//}
@see Dir#children
@see Dir.each_child
@see Dir.entries...