Ruby

Hilfestellung

bundler

aktualisieren
bundle update --bundler
bundle update

map ohne nil

Ruby < 2.7
[{t: [1,2,3]}, {}, {t: [2,3]}].map {|i| i[:t]}.compact
=> [[1, 2, 3], [2, 3]]
Ruby >= 2.7
[{t: [1,2,3]}, {}, {t: [2,3]}].filter_map {|i| i[:t]}
=> [[1, 2, 3], [2, 3]]

Gems

Blogposts