default value in ruby is nil and nil is not equal any device. In ruby it is usually written using temporary array:
```
if [:CT_DISK, :CT_DMMULTIPATH].include? d["type"]
```