Hi gurus & nubys,
I just felt in a problem where I'd like to have a fixed size
Array/Hash [1]. 

BTW if I simply freeze my object I can't change the length, but
neither the object , so I have to do something like this

def add_myarr(x)
@myarr.push x if @myarr.last < MAX_LENGTH
end

Tjhis works fine cause I just put objects in the array trough this
method, but looks ugly, and I suppose that must be a better way to do
this. 
Anyone out there could help me ?


thanks in advance





[1] damn, I always wanted a variable length array when using java..