Module: Aqua::Pack::ClassMethods
ClassMethods
Public Visibility
Public Instance Method Summary
#_hidden_attributes |
Reader method for accessing hidden attributes. Returns: Array |
---|---|
#hide_attributes(*ivars) |
Used in class declaration to assign certain instance variables as not for persistance. |
Public Instance Method Details
_hidden_attributes
hide_attributes
public
hide_attributes(*ivars)
Used in class declaration to assign certain instance variables as not for persistance
[View source]
32 33 34 35 36 37 |
# File 'lib/aqua/object/pack.rb', line 32 def hide_attributes( *ivars ) ivars.each do |ivar| raise ArgumentError, '' unless ivar.class == Symbol _hidden_attributes << "@#{ivar}" end end |