From: "Bartosz DziewoƄski" Date: 2012-07-07T01:03:22+09:00 Subject: Re: Can't access class of a loaded file in the IRB 2012/7/6 One Two : > I can create a BankAccount object just fine in the IRB, but when I try > to create a ComplexNumber object I get an error saying "unitialized > constant" even though I entered 'load "complex.rb"' and 'load > "bankaccount.rb"'. File name "complex.rb" is used by one of Ruby's library files, and it's that file that gets loaded. Rename your file or explicitly mark that you mean the file in current directory: 'load "./complex.rb"'. -- Matma Rex