インスタンス変数の
attr_writer
宣言を作成します。
attr_writer
は書き込み専用メソッドを定義するための糖衣構文であり、次のように記述するのと同じです。
class Foo def foo=(foo) @foo = foo end end