method

attr_reader

v1_8_7_72 - Show latest stable - Class: Module
attr_reader(...)
public

Creates instance variables and corresponding methods that return the value of each instance variable. Equivalent to calling ``attr:name'' on each name in turn.