From: Markus Jais Date: 2002-06-03T20:31:22+09:00 Subject: dynamic attr_accessor?? hello I like to create methods for my class dynamically based on strings I pass to initialize It should look like this: class Cl def initialize(name) @name = name attr_accessor :@name # wrong syntax but how to do it? end end c = Cl.new("temp") It seems that I can not call attr_accessor within initialize is there a way to achive what I want?? markus