From: Michel Son Date: 2008-06-10T23:21:44+09:00 Subject: Making separate File Hello, The given two classes (TestClass1 and TestClass2) are in a single ruby code. I want a code that separate both classes and save them into 2 diffrent ruby files. E.g Orginal code "test.rb" (contains the classes) after executing one file for 1 class "class1.rb" second file for second class "class2.rb" and so on... I would be very thankful to you dear ------------------------- class TestClass1 def method1(a,b) sum = a + b puts sum end def method2(*c) l = c.length puts l end end -------------- class TestClass2 def method1(a,b) sum = a + b puts sum end def method2(*c) l = c.length puts l end end -- Posted via http://www.ruby-forum.com/.