instance method
attr_internal_writer
Ruby on Rails 3.2.22.5
Since v2.2.3Signature
attr_internal_writer(*attrs)
Declares an attribute writer backed by an internally-named instance variable.
Parameters
-
attrsrest
Source
# File activesupport/lib/active_support/core_ext/module/attr_internal.rb, line 8
def attr_internal_writer(*attrs)
attrs.each {|attr_name| attr_internal_define(attr_name, :writer)}
end
Defined in activesupport/lib/active_support/core_ext/module/attr_internal.rb line 8
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Module