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.
# File lib/facets/supplemental/facets/reference.rb, line 67 def __value__ @ref end
Generated with the Darkfish Rdoc Generator 2.