attr_writer « Class « Ruby






1.Using attr_writer :color is the same as if you had done this:
2.Readable attribute and writable attribute
3.Defining and Using an Employee Class