L
Leonardo Francalanci
I know it's a stupid question, but I can't find the answer...
Isn't there another way to have an accessor for a class variable than a
"def"??? Something like "attr_reader"?
class Outing < ActiveRecord::Base
@@planingList = [ "YES", "NO", "YES/NO"]
def Outing.wind_directionList
return @@wind_directions
end
end
If the answer is somewhere in the docs, please point me to it.
Thank you
Isn't there another way to have an accessor for a class variable than a
"def"??? Something like "attr_reader"?
class Outing < ActiveRecord::Base
@@planingList = [ "YES", "NO", "YES/NO"]
def Outing.wind_directionList
return @@wind_directions
end
end
If the answer is somewhere in the docs, please point me to it.
Thank you