Google

def previous_sibling=(other) parent.insert_before self, other end