[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: attr_ type thingies
From: Martin DeMello <martindemello () yahoo ! com>
Date: 2002-12-31 14:42:59
[Download RAW message or body]
ts <decoux@moulon.inra.fr> wrote:
>>>>>> "M" == Martin DeMello <martindemello@yahoo.com> writes:
>
> M> class Module
> M> # synchronised readers
> M> def sync_reader(mutexname, *args)
> M> args.each {|var|
> M> module_eval <<-here
> M> def #{var.to_s}
>
> instance method
Thanks - took me a good bit of thinking, but I think I've finally
understood what module_eval does.
martin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic