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

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

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -