From: Rick DeNatale Date: 2007-10-26T06:41:53+09:00 Subject: Re: Need help understanding metaclassing On 10/25/07, Daniel Waite wrote: > It looks like the only way to define a method on a singleton object is > to use... > > cs.instance_eval do > def eat > puts "You eat." > end > end No, your code did exactly that. c.eat worked, but did you try Creature.new.eat In other words, only the object referenced by c got the method. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/