Method: Module#attr_internal
- Defined in:
- activesupport/lib/active_support/core_ext/module/attr_internal.rb
permalink #attr_internal ⇒ Object
Declares an attribute reader and writer backed by an internally-named instance variable.
20 21 22 23 |
# File 'activesupport/lib/active_support/core_ext/module/attr_internal.rb', line 20 def attr_internal_accessor(*attrs) attr_internal_reader(*attrs) attr_internal_writer(*attrs) end |