From: Peter Ehrlich Date: 2009-08-19T03:14:58+09:00 Subject: Re: exercise in DRY Alright awesome, thanks for the help! (And yes I suppose I should throw a save in there ;-) --Peter Fabian Streitel wrote: > > nope, they are normal instance methods. I assume you are using something > like DataMapper or ActiveRecord to handle your database access. > > So in your model class Tweet (I assume that's what it's called) you add > these > two methods. Then they can be called on all the Tweet instances. > > BTW, don't you have to call tweet.save or similar some time in your > code? > > Greetz! -- Posted via http://www.ruby-forum.com/.