From: poseid Date: 2010-05-18T23:55:07+09:00 Subject: Re: class arrays On 18 Mai, 16:00, MrZombie wrote: > > Erh, not that way. Sorry. > > You could have > > class A >  @b = [1,2,3] > end > > Which stores the array in a class-level instance variable. > > This other one > class A >  @@b = [1,2,3] > end > > stores the array in a class variable. > Hm... ok, this is more or less what I expected as well, when reading code employing instance/class variables. But how do I understand the (old) code from a book on Rails: class T < ActionView::Helpers::FormBuilder field_helpers.each do |s| src = <<-END_SRC def #{s}(field, options = {}) @template.content_tag( ... ) end END_SRC class_eval src, __FILE__, __LINE__ end end To me it seems that field_helpers is an instance variable, but there is no @ nor @@ used thanks for feedback