On 20.09.2010 11:59, Abder-Rahman Ali wrote:
> Does the preceding Java code look like the follows in Ruby:
>
> class ReadFile
> def set_file(filename)
> def initialize
> end
> end
> end

More like:

class ReadFile
   def set_file=(filename)
   end
end

and use it like

reader = ReadFile.new
reader.set_file = "filename"

You haven't defined an explicit constructor (source wise). Java creates 
implicit ones, I'm not sure about ruby. Let Brian answer that :)

- Markus