オマエらはもっとObject#tryの便利さについて知るべき
arr = [ ["foo", "", "bar"], nil, ].sample arr.try(:reject, &:blank?) #=> [“foo”, “bar”]
要activesupport.gem
tryと関数合成は本体に入れて欲しい
arr = [ ["foo", "", "bar"], nil, ].sample arr.try(:reject, &:blank?) #=> [“foo”, “bar”]
要activesupport.gem
tryと関数合成は本体に入れて欲しい