Ruby Linked List assignment