# File lib/dm-sweatshop/support/class_attributes.rb, line 23 def self.writer(klass, *attributes) attributes.each do |attribute| klass.class_eval("unless defined? @@\#{attribute}\n@@\#{attribute} = nil\nend\n\ndef self.\#{attribute}=(obj)\n@@\#{attribute} = obj\nend\n\ndef \#{attribute}=(obj)\n@@\#{attribute} = obj\nend\n", __FILE__, __LINE__ + 1) end end