Ruby Ruby Objects and Classes Variables and Methods Attribute Writers and Accessors

Getting the "task 1 no longer passing error" but I can't see where the problem is.

what's wrong with my task 1?

class Name
  attr_reader :title
  attr_writer :first_name
  attr_accesssor :last_name

  def initialize(title, first_name, middle_name, last_name)
    @title = title
    @first_name = first_name
    @middle_name = middle_name
    @last_name = last_name

1 Answer

William Li
William Li
Pro Student 26,814 Points

Looks like there's a typo in your spelling of the word attr_accesssor, there's triple s there.

thanks you ,it worked