Hello, guys:

My question is about the "class method". Why, in
matrix.rb, the class method, "Matrix.[]", calls
"init_rows" this way? If my ":new" is public, what
should I do then?

  def Matrix.[](*rows)
    new(:init_rows, rows, false)
  end
...

  def initialize(init_method, *argv)
    self.send(init_method, *argv)
  end

  def init_rows(rows, copy)
    if copy
      @rows = rows.collect{|row| row.dup}
    else
      @rows = rows
    end
    self
  end
  private_class_method :new
  private :init_rows
...

Thanks in advance
sylvia

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com