instance method
attr_internal_accessor
Ruby on Rails 4.1.16
Since v2.2.3Signature
attr_internal_accessor(*attrs)
Declares an attribute reader and writer backed by an internally-named instance variable.
Parameters
-
attrsrest
Source
# File activesupport/lib/active_support/core_ext/module/attr_internal.rb, line 14
def attr_internal_accessor(*attrs)
attr_internal_reader(*attrs)
attr_internal_writer(*attrs)
end
Defined in activesupport/lib/active_support/core_ext/module/attr_internal.rb line 14
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Module