I want to create large number of attributes which can be done with ease if constructed with method call like this,
attr_accessor :attr_list
def attr_list
[:x1, :y1, :x2, :y2]
end
This is not working. Is there any other way to achieve this?
Any help will be appreciated.