Method: Module#attr_internal_reader

Defined in:
activesupport/lib/active_support/core_ext/module/attr_internal.rb

#attr_internal_reader(*attrs) ⇒ Object

Declares an attribute reader backed by an internally-named instance variable.



5
6
7
# File 'activesupport/lib/active_support/core_ext/module/attr_internal.rb', line 5

def attr_internal_reader(*attrs)
  attrs.each { |attr_name| attr_internal_define(attr_name, :reader) }
end