"David A. Black" <dblack / wobblini.net> wrote in message

> You can just define the method directly on the object -- you don't
> need that second module:
>
>    module M
>      def self.included(mod)
>        def mod.foo(n)
>          @foo = n
>        end
>      end
>

Thanks Rob, David! That's nice and succinct.