인스턴스 변수의
attr_reader
선언을 생성합니다.
attr_reader
는 리더 메서드를 정의하기 위한 문법적 설탕이므로 다음과 같이 작성하는 것과 동등합니다:
class Foo def foo @foo end end