A place for Ruby objects to hide instance variables.
This library is fresh (est 2009-07-06) and barely tested. It's fun to use but not reliable yet. In particular:
Does not work with Symbols or Fixnum object
require 'attic' String.extend Attic String.attic :timestamp a = "anything" a.timestamp = "1980-11-18" a.instance_variables # =>  a.timestamp # 1980-11-18
Via Rubygems, one of:
$ gem install attic $ gem install delano-attic --source http://gems.github.com/
or via download: