From: "Ara.T.Howard" Date: 2005-06-23T05:12:58+09:00 Subject: Re: [ANN] traits-0.3.0 On Thu, 23 Jun 2005, Joel VanderWerf wrote: > Ara.T.Howard wrote: > ... >> <========< sample/c.rb >========> > ... >> class C >> class << self >> has('classname'){|this| this.name.upcase } >> end >> >> has('classname'){|this| this.class.name.downcase } >> end > > Hi, Ara, > Just curious, why wouldn't #instance_eval give you the desided behavior? In > that case, you could just use 'self' instead of 'this'. a better question is why i'm not drinking enough coffee! look for traits 0.4.0 soon - it has this exact change ;-) -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | My religion is very simple. My religion is kindness. | --Tenzin Gyatso ===============================================================================