For Cocoa nostalgics out there, I just released `key_value_coding`, a Ruby gem that ports `#value_for_key` and `#value_for_key_path` from Objective-C and Swift to Ruby.

It allows traversing hierarchies of mixed objects with a simple unified interface (think `#dig`, but with any type of objects!)

https://gitlab.com/pmorinerie/key_value_coding/-/blob/main/README.md

#Ruby #Cocoa #KVC

README.md · main · Pierre de La Morinerie / key_value_coding · GitLab

GitLab.com

GitLab

 Nostalgique de Cocoa ? Je viens de publier `key_value_coding`, une gem qui porte les méthodes `#value_for_key` et `#value_for_key_path` en Ruby.

Ça permet de traverser des hiérarchies d’objets intuitivement (un peu comme `#dig`, sauf que ça fonctionne pour tous les types d'objets !)

https://gitlab.com/pmorinerie/key_value_coding/-/blob/main/README.md?ref_type=heads

#Ruby #Cocoa #KVC

README.md · main · Pierre de La Morinerie / key_value_coding · GitLab

GitLab.com

GitLab