vendor/bundle/ruby/1.9.1/gems/paperclip-3.5.4/lib/paperclip/attachment.rb
# Writes the attachment-specific attribute on the instance. For example,
# instance_write(:file_name, "me.jpg") will write "me.jpg" to the instance's
# "avatar_file_name" field (assuming the attachment is called avatar).
Writes the attachment-specific attribute on the instance.
Writes the attachment - specific attribute on the instance .
def instance_write(attr, value)
      setter = :"#{name}_#{attr}="
      if instance.respond_to?(setter)
        instance.send(setter, value)
      end
    end
def instance_write ( attr , value ) setter = :" #{ name } _ #{ attr } = " if instance . respond_to? ( setter ) instance . send ( setter , value ) end end
Writes the attachment-specific attribute on the instance.
Writes the attachment - specific attribute on the instance .
attr
<not_specific>
value
<not_specific>