From: kasal@... (Stepan Kasal) Date: 2002-06-03T22:38:04+09:00 Subject: Re: dynamic attr_accessor?? Hallo, On Mon, 03 Jun 2002 14:26:54 +0200, Markus Jais wrote: > nobu.nokada@softhome.net wrote: > > At Mon, 3 Jun 2002 20:31:22 +0900, Markus Jais wrote: > >> I like to create methods for my class dynamically based on > >> strings I pass to initialize > > > > class Cl > > def initialize(name) > > class << self;self;end.class_eval {attr_accessor name} > > end > > end > > what is the "self" between "class << self;" and "end.clas_eval..." > good for??? just a wild guess by a newbie: "class<