Robert Klemme schrieb: >> >ruby t.rb >>/BlogData.rb:23:in `initialize': wrong number of arguments(0 for 2) >>(ArgumentError) >> from ./BlogData.rb:23:in `new' >> from ./BlogData.rb:23:in `initialize' >> from ./BlogData.rb:32:in `initialize' >> from t.rb:17:in `new' >> from t.rb:17 >> >Exit code: 1 >> >> > >Strange that t.rb is reported to have line 17 while the code above looks >like only three lines. > > > I had some commented lines before that statement. >>It doesn't work if I "require" my code in another file. >> >> > >And you're 100% sure that the required code is the same as presented >above? No load path pecularities? Sorry, I can't believe this - it works >for me: > > "Load path pecularities": like my editor I run the code from (SciTE)? I just tried from my OS's shell and this works. Sorry that I made such a big noise! Michael