Recently I was working on a project that called for me to extract the uppercase letters from a string and then in one or another, manipulate these letters.
So, to easily do this, I simply extending the String Ruby object by doing the following
str = "Hello World"
letters = str.extract_upper_case_letters
# ["H", "W"]