From: ara.t.howard@... Date: 2006-07-14T10:20:55+09:00 Subject: Re: Initialize a variable in an extended class On Fri, 14 Jul 2006, Eric Armstrong wrote: > d) Do some other clever thing with closures or eval, > so the Element object can reference data defined > in my class? Is there a way to do that? why not a module? module ElementExtension TAGS = %w( i p foo bar ) def inline? TAGS.include? name end end REXML::Element.extend ElementExtension -a -- suffering increases your inner strength. also, the wishing for suffering makes the suffering disappear. - h.h. the 14th dali lama