From: Saumya Garg Date: 2004-08-19T06:05:55+09:00 Subject: Re: Module Extension problem Thanks for the response. Unfortunately, that suggestion did not work. Using those modifications I got the following error: processImg.rb:7:in `OpenFile': wrong argument type Module (expected Class) (TypeError) from /home/usr/JohnDoe/processImg.rb:7 Line 7 refers to the line: data = Image_File.OpenFile(imageName) Saumya Florian Gross wrote: > Saumya Garg wrote: > >> processImg.rb:7:in `OpenFile': cannot convert Module into String >> (TypeError) >> from /home/usr/johnDoe/processImg.rb:7 > > > This should fix it AFAIK: > >> static VALUE getFile(VALUE nameFile){ > > static VALUE getFile(VALUE self, VALUE nameFile){ > >> static VALUE writeFile(VALUE data, VALUE nameFile){ > > static VALUE writeFile(VALUE self, VALUE data, VALUE nameFile){ > >> Thanks in advance for your help. > > > Hope I could help. :) > > Regards, > Florian Gross