Complete the code to create a read-only attribute for :name.
class Person [1] :name end
Use attr_reader to create a read-only attribute.
Complete the code to create a write-only attribute for :password.
class User [1] :password end
Use attr_writer to create a write-only attribute.
Fix the error in the code to allow reading and writing for :email.
class Contact [1] :email end
attr_accessor creates both getter and setter methods.
Fill both blanks to create a class with read-only :title and write-only :secret attributes.
class Document [1] :title [2] :secret end
attr_reader for read-only :title and attr_writer for write-only :secret.
Fill all three blanks to create a class with read-write :name, read-only :age, and write-only :password.
class Account [1] :name [2] :age [3] :password end
attr_accessor for read-write :name, attr_reader for read-only :age, and attr_writer for write-only :password.
