Attic - v0.3 ALPHA
A place for Ruby objects to hide instance variables.
Alpha Notice
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
Example
require 'attic'
String.extend Attic
String.attic :timestamp
a = "anything"
a. = "1980-11-18"
a.instance_variables # => []
a. # 1980-11-18
Installation
Via Rubygems, one of:
$ gem install attic
$ gem install delano-attic --source http://gems.github.com/
or via download:
Credits
-
Delano (@solutious.com)
License
See: LICENSE.txt