From: Trans Date: 2005-11-10T03:32:13+09:00 Subject: Re: Writing my own attr_* methods Do some research on this, there's plenty of mail archives on the subject. Or have a look at some Facets code like #attr_tester. (Hmm... attr_flag actually seems like a better name). Anyway, here's a simple example to get you started: class Module def attr_flag( x ) class_eval %{ def #{x}? @#{x} end } end end T.