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