Cattr_accessor

Is this specific to rails? What’s it used for and when is it approriate
to us it?
Is there also a mattr_accessor?