method
mattr_writer
mattr_writer(*syms)
public
Hide source
# File activesupport/lib/active_support/core_ext/module/attribute_accessors.rb, line 34 def mattr_writer(*syms) options = syms.extract_options! syms.each do |sym| class_eval("unless defined? @@\#{sym}\n@@\#{sym} = nil\nend\n\ndef self.\#{sym}=(obj)\n@@\#{sym} = obj\nend\n\n\#{\"\ndef \#{sym}=(obj)\n@@\#{sym} = obj\nend\n\" unless options[:instance_writer] == false }\n", __FILE__, __LINE__) end end