[Rails] Re: mattr_accessor inside a class

2012-09-11 Thread 7stud --
John Merlino wrote in post #1075232: Rails extends Ruby with mattr_accessor (Module accessor). As Ruby's attr_accessor generates getter/setter methods for instances, mattr_accessor provide getter/setter methods at the module level. In below example, you see that mattr_accessor declared in the

[Rails] Re: mattr_accessor inside a class

2012-09-10 Thread John Merlino
it looks as if it is onyl available on the class because if you look it says self.class.fallbacks, yet that wouldnt make sense either because then what would be the point of its existance if you had to reach the class for it it, why not just create a class level macro instead? On Sep 9, 3:10 pm,