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