인스턴스 변수의 attr_writer 선언을 생성합니다. attr_writer는 writer 메서드를 정의하기 위한 문법적 설탕이므로 다음과 같이 작성하는 것과 동등합니다:

class Foo
  def foo=(foo)
    @foo = foo
  end
end