From: Abder-Rahman Ali Date: 2010-09-20T18:59:49+09:00 Subject: Constructor (Java) ---> initialize (Ruby) Like constructors in Java, I understood that in Ruby, we use "initialize" for this issue. If I have the following in Java: public class ReadFile { public static short[][] setFile(fileName) { ReadFile rf = new ReadFile(); } } Regarding: public static short[][] setFile(fileName) In a previous thread, I understood that I can represent it in ruby as: def set_file(filename) end But, now, as for: ReadFile rf = new ReadFile(); Does the preceding Java code look like the follows in Ruby: class ReadFile def set_file(filename) def initialize end end end Thanks. -- Posted via http://www.ruby-forum.com/.