logic in this block is quite hard to recognize. It looks like you want to unwind all devices before `after` and then find first not tabooed. So code can look like.
```
devices = disks.keys
unwinded_devices = devices[devices.index(after)..-1]
used_disk = unwinded_devices.find {|d| !@tabooDevices.include?(d)}
```