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)
  puts b    #=> "HELLO"
  c = 10
  b.become(c)
  puts b    #=> "10"

Methods

Public Class methods

Public Instance methods

instance_delegate()

Alias for #value

[Validate]