> module Kernel
> def meta
> class << self; self; end
> end
> end
>
> class Module
> public :attr_accessor, :attr_reader, :attr_writer
> end
>
> then
>
> def foo
> meta.attr_accessor :x
> end
Out of several excellent alternatives to my code I think this is the
most compelling.