るりまサーチ

最速Rubyリファレンスマニュアル検索!
15件ヒット [1-15件を表示] (0.014秒)
トップページ > クエリ:===[x] > クエリ:WeakRef[x]

別のキーワード

  1. _builtin ===
  2. date ===
  3. ipaddr ===
  4. pathname ===
  5. bigdecimal ===

種類

ライブラリ

検索結果

WeakRef (38030.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 (36.0)

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

...== Command line options

===
`--help` option

When the environment variable `RUBY_PAGER` or `PAGER` is present and has
a non-empty value, and the standard input and output are tty, the `--help`
option shows the help message via the pager designated by the value.
16754

===
`--backtrace-limit` opti...
...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...
...te a hash.
* `super` is optimized when the same type of method is called in the previous call if it's not refinements or an attr reader or writer.

===
JIT

* Performance improvements of JIT-ed code
* Microarchitectural optimizations
* Native functions shared by multiple methods are...