-
-
Save relic7/090e3febc5215179107a to your computer and use it in GitHub Desktop.
idomatic-ruby-example-9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def some_better_method(user, ids) | |
| vals = ids.map {|id| user.returns_a_hash(id) } | |
| vals.any? ? do_something_with_hashes(vals) : | |
| do_something_without | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment