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/.