I don't have any recent information on how google search works, but years ago it looked at the expertise level of the searcher. So newbies received newbie results, advanced searchers received advanced results (and more visibility into filtering functionality). Today... they're hiding the advanced features and also seem to be reducing personalization of results to save compute resources. It's horrible.
You: Class Inheritance +ruby
Google: searching for "cash inheritance..."