Hi I am just doing a bit of refactoring on a small cli web scrapping project I did in Ruby and I was simply wondering if there was cleaner way to write a particular section with