Ruby Check If Variable Is Arraylist An Interface