Creates an
attr_reader
declaration for an instance variable. An
attr_reader
is syntactic sugar for defining a reader method, it is equivalent to writing the following:
class Foo def foo @foo end end