ruby - What does & mean in this piece of rails code -


possible duplicate:
what map(&:name) mean in ruby?

assume game active record model, & mean in following code?

games.group_by(&:genre) 

see this: what call &: operator in ruby?


Comments

Popular posts from this blog

sql - text truncated using perl DBI insert -

c++ - Is it possible to compile a VST on linux? -

php - Pass object by reference or value -