るりまサーチ

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

別のキーワード

  1. weakref __setobj__
  2. weakref __getobj__
  3. weakref weakref_alive?
  4. weakref weakref

種類

ライブラリ

クラス

キーワード

検索結果

WeakRef.new(orig) -> WeakRef (35202.0)

与えられたオブジェクトを使って自身を初期化します。

与えられたオブジェクトを使って自身を初期化します。

@param orig 任意のオブジェクトを指定します。

WeakRef (14036.0)

weak reference を実現するクラスです。

...weak reference を実現するクラスです。

WeakRef
オブジェクトは与えられたオブジェクトをポイントしますが、
ポイント先のオブジェクトは GC される可能性があります。
アクセスしようとしたときにオブジェクトが GC されてい...
...れば
WeakRef
::RefError が発生します。

delegate も参照してください。

=== サンプルコード

require 'weakref'

foo = Object.new
ref = WeakRef.new(foo)
ref.some_method_of_foo...

NEWS for Ruby 3.0.0 (6066.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...NEWS for Ruby 3.0.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリス...
...s: Read ENV names and values as UTF-8 encoded Strings 12650
* Encoding
* Added new encoding IBM720. 16233
* Changed default for Encoding.default_external to UTF-8 on Windows 16604
* Fiber
* Fiber.new(blocking: true/false) allows you to create non-blocking execution contexts. 16786...
...lv
* rinda
* set
* securerandom
* shellwords
* tempfile
* tmpdir
* time
* tsort
* un
* weakref
* The following extensions are promoted to default gems from stdlib.
* digest
* io-nonblock
* io-wait
* nkf
* p...