one method for easier data extraction from hash/array
https://github.com/igorkasyanchuk/hasharay_ext
Instead of:
h.fetch(:projects, []).map{|e| e[:name]}
I can just write: h.fpath('projects.name')
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
https://github.com/igorkasyanchuk/hasharay_ext
Instead of:
h.fetch(:projects, []).map{|e| e[:name]}
I can just write: h.fpath('projects.name')
Post a comment