In other words you did not have a constructor (def initialize(...)) method that accepted the number of arguments you were passing. > -----Original Message----- > From: Armin Roehrl [mailto:armin / approximity.com] > Sent: Saturday, November 03, 2001 4:35 PM > To: ruby-talk ML > Subject: [ruby-talk:24292] Re: Newbie wrong # of arguments(4 for 0) > question > > > Hi, > > what about adding initialize to Revision? > -- > class Revision > attr_reader :revision, :date, :name, :log > def initialize(revision,date,name,log) > @revision,@date,@name,@log=revision,date,name,log > end > end > --- > > Bye, > Armin >