From: nobu.nokada@... Date: 2002-07-22T04:34:10+09:00 Subject: Re: module_eval: adding a method to a class with a proc Hi, At Mon, 22 Jul 2002 03:43:26 +0900, Ned Konz wrote: > You've got a scoping problem, and x isn't visible inside "def ten". > This works (I think), but I'm not sure what you're trying to do, > exactly, so I don't know if it solves the problem. Alternative. C.module_eval { define_method(:ten, x) } -- Nobu Nakada