ruby merge