Skip to content

Instantly share code, notes, and snippets.

@jmondo
Created June 30, 2015 21:52
Show Gist options
  • Save jmondo/2dffb5679ddf41a59e24 to your computer and use it in GitHub Desktop.
Save jmondo/2dffb5679ddf41a59e24 to your computer and use it in GitHub Desktop.
gotta love ruby
def any_family_members_trying_to_lose_weight?
family_members.any?(&:trying_to_lose_weight?)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment