Class Reference
In: lib/more/facets/reference.rb
Parent: Object

Reference

Reference provides a way to access object indirectly. This allows for the object itself to be changed on the fly.

  a = "HELLO"
  b = ref(a)
  b.to_s    #=> "HELLO"
  c = 10
  b.become(c)
  b.to_s    #=> "10"

TODO: Use BasicObject for Ruby 1.9.

Methods

Public Class methods

Public Instance methods

instance_delegate()

Alias for #value

[Validate]