./devel/ruby-ref [object reference utilities for ruby]
[+] Add this package to your ports tracker

[ CVSweb ] [ Homepage ] [ RSS feed ]

Version: 1.0.5, Package name: ref-1.0.5
Maintained by: The OpenBSD ports mailing-list
Master sites:
Flavors (export FLAVOR=xyz, setenv FLAVOR xyz):
  • ruby18
  • ruby19
  • ruby20
  • ruby21
  • ruby22
  • rbx
  • jruby
Description
ruby-ref provides object references for Ruby as well as some common
utilities for working with references. Object references are used to
point to other objects and come in three distinct flavors that interact
differently with the garbage collector.

* Ref::StrongReference - This is a plain old pointer to another object.

* Ref::WeakReference - This is a pointer to another object, but it is
not seen by the garbage collector and the memory used by the object can
be reclaimed at any time.

* Ref::SoftReference - This is similar to a weak reference, but the
garbage collector is not as eager to reclaim the referenced object.

All of these classes extend from a common Ref::Reference class and have
a common interface.

Weak and soft references are useful when you have instantiated objects
that you may want to use again but can recreate if necessary. Since the
garbage collector determines when to reclaim the memory used by the
objects, you don't need to worry about bloating the Ruby heap.


Filesize: 26.5 KB
Version History (View Complete History)
  • (2015-06-24) Updated to version: ref-1.0.5
  • (2012-12-13) Package added to openports.se, version ref-1.0.2 (created)
[show/hide] View available PLISTS (Can be a lot of data)

CVS Commit History:

   2015-06-24 01:07:22 by Jasper Lievisse Adriaanse | Files touched by this commit (3)
Log message:
update to ref-1.0.5
   2015-06-24 01:07:22 by Jasper Lievisse Adriaanse | Files touched by this commit (3)
Log message:
update to ref-1.0.5
   2015-06-24 01:07:22 by Jasper Lievisse Adriaanse | Files touched by this commit (3)
Log message:
update to ref-1.0.5