[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dennou-ruby:000093] Re: NMDArray



���Ȥ���Ǥ�

In message "[dennou-ruby:000090] NMDArray"
    on 99/09/08, Takeshi Horinouchi <horinout@xxxxxx> writes:
>�� NMDArray �� NArray �λ�¹�ˤ��褦���¤ä����ɡ����������
>  initialize ������Ǥ��ʤ��ΤǤ�᤿(��Array.new�Ϻ�����Բ�)��

����ʴ����ǤǤ��ޤ���

class NMArray < NArray
  class << self
    alias __new__ new  # to preserve orinal new
    private :__new__   # to hide __new__

    def new(*arg)
      # do something to do. you can call initialize here. 
    end
  end
end