Mimicks behavior of Ruby's attr_accessor, attr_reader and attribute_writer.