From: Siep Korteling Date: 2010-03-20T05:57:11+09:00 Subject: Re: Help with Class definition and calling a Ruby Program Reinhard Lange wrote: > > def SplitCode(sCodeFile,sListFile) > (...) > What I need is to be able to pass the arguments to the function and call > it. > Do I need to: > ./mycode.rb file1.txt file2.txt > > Thanks in advance for any help. Don't use a capitalized method name (see Aldric's suggestion); only classes and constants are capitalized. Passing arguments to the method is the same as in most languages: split_code("file1.txt", "file2.txt") hth, Siep -- Posted via http://www.ruby-forum.com/.