Method: Module#attr_internal

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

#attr_internalObject

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

[View source]

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