Skip to content

Instantly share code, notes, and snippets.

@maxplomer
Created September 10, 2014 22:18
Show Gist options
  • Save maxplomer/bbcd4314ddf607448a01 to your computer and use it in GitHub Desktop.
Save maxplomer/bbcd4314ddf607448a01 to your computer and use it in GitHub Desktop.
proc block practice
[1] pry(main)> x = Proc.new {|i| puts i}
=> #<Proc:0x007fa46aa60188@(pry):1>
[2] pry(main)> [1,2,3].map(&x)
1
2
3
=> [nil, nil, nil]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment