Module Attic
In: lib/attic.rb

Attic

A place to store instance variables.

Methods

Classes and Modules

Module Attic::InstanceMethods

Constants

VERSION = '0.5.3' unless defined?(VERSION)

Public Class methods

Public Instance methods

A class method for defining variables to store in the attic.

  • junk is a list of variables names. Accessor methods are created for each variable name in the list.

Returns the list of attic variable names or if not junk was given, returns the metaclass.

e.g.

    String.extend Attic
    String.attic :timestamp

In this example, attic created two instance methods:

  • String#timestamp for getting the value
  • String#timestamp for setting the value

Returns an Array of attic variables for the current class. e.g.

    String.extend Attic
    String.attic :timestamp
    String.attic_variables     # => [:timestamp]
attic_vars()

Alias for attic_variables

[Validate]