Created
May 6, 2011 13:09
-
-
Save Hakon/958925 to your computer and use it in GitHub Desktop.
This file contains 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 do_something_with_post(post) # what you write as (post) here is the same as |post| in a block | |
puts post | |
end | |
do_something_with_post(1) # will print 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment