Module: Aqua::Pack

This module is responsible for packing objects into Storage Objects The Storage Object is expected to be a Mash-Like thing (Hash with indifferent access). It is the job of the storage engine to convert the Mash into the actual storage ivars. Aqua::Pack

Public Visibility

Public Class Method Summary

included(klass)

Public Class Method Details

included

public included(klass)
[View source]


6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/aqua/object/pack.rb', line 6

def self.included( klass ) 
  klass.class_eval do
    extend ClassMethods
    include InstanceMethods
    
    unless instance_methods.include?( 'id=' ) || new.instance_variables.include?( '@id' )
      attr_accessor :id
    end
    
    hide_attributes :_store, :__pack, :id, :_rev 
  end  
end
Generated on Thursday, August 27 2009 at 05:50:23 PM by YARD 0.2.3.5 (ruby-1.8.6).