def merge other
    return super(other) unless self[:class] && other[:class]

    self_class = self[:class]
    other_class = other[:class]