def set_inverse(other, writer, inv_writer)
      other.send(inv_writer, self) if other
      send(writer, other)
    end
def set_inverse(other, writer, inv_writer)
      other.send(inv_writer, self) if other
      send(writer, other)
    end
Sets an attribute inverse by calling the attribute writer method with the other argument.
 If other is non-nil, then the inverse writer method is called on self.

 @param other [Resource] the attribute value to set
 @param [Symbol] writer the attribute writer method
 @param [Symbol] inv_writer the attribute inverse writer method defined for the other object
 @private