attr_accessor « Class « Ruby






1.Creating Readable and Writable Attributes: use attr_accessor
2.attr_accessor add accessor to a class
3.Get new defined instance methods
4.Use attr_accessor to add a new attribute and set it
5.A logger