Searched refs:WeakRef (Results 1 - 4 of 4) sorted by relevance

/macosx-10.10.1/ruby-106/ruby/test/
H A Dtest_weakref.rb9 level.times {obj = WeakRef.new(obj)}
10 return WeakRef.new(obj), str
20 assert_nothing_raised(WeakRef::RefError) {weak.to_s}
23 assert_raise(WeakRef::RefError) {weak.to_s}
32 weakrefs << WeakRef.new(obj)
39 rescue WeakRef::RefError
51 WeakRef.new(obj)
/macosx-10.10.1/ruby-106/ruby/lib/
H A Dweakref.rb6 # A WeakRef may be used exactly like the object it references.
12 # foo = WeakRef.new(foo) # reassign foo with WeakRef instance
19 # With help from WeakRef, we can implement our own redimentary WeakHash class.
28 # super WeakRef.new(key), WeakRef.new(obj)
33 # Hash#store to create a new WeakRef object with +key+ and +obj+ parameters
37 # will get an ArgumentError because WeakRef cannot create a finalizer for a
58 # #=> WeakRef::RefError: Invalid Reference - probably recycled
62 # values. Also, when we tried to inspect our hash, we got a WeakRef
65 class WeakRef < Delegator class
[all...]
/macosx-10.10.1/ruby-106/ruby/test/ruby/
H A Dtest_io.rb1633 WeakRef.new(IO.for_fd(fd, autoclose: autoclose))
1672 rescue WeakRef::RefError
1688 rescue WeakRef::RefError
/macosx-10.10.1/CPANInternal-159.1/IO-Socket-SSL/
H A DSSL.pm1416 #Use Scalar::Util or WeakRef if possible:
1418 eval "use WeakRef";
2469 If you have Scalar::Util (standard with Perl 5.8.0 and above) or WeakRef, IO::Socket::SSL

Completed in 306 milliseconds