Skip to content

Instantly share code, notes, and snippets.

@fdutey fdutey/gist:69495
Created Feb 24, 2009

Embed
What would you like to do?
#Je reprends l'exemple du post précédent
posts = Post.all
posts.collect{ |post| post.published? } #=> [true, true, false]
posts.collect(&:published?) #=> [true, true, false]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.