From: ajay paswan Date: 2012-10-04T22:37:23+09:00 Subject: Unable to work with class variable Here is my code: class Test @@fields="ok" attr_accessor :fields #initialize attributes. def initialize() end end a= Test.fields It says: test.rb:11: undefined method `fields' for Test:Class (NoMethodError) Why? even I have mentioned attr_accessor. -- Posted via http://www.ruby-forum.com/.