Something I didn't realize I didn't know how to do in #ruby. I was hoping .select would be magical. http://stackoverflow.com/questions/27628686/filtering-ruby-array-of-hashes-by-another-hash …
@squarism fruit.select { |hash| hash.slice(*filter.keys) == filter } # forgot to splat
-
-
@bascule Awesome! Clever. I added your answer and credit to the SO question.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.