stackoverflow.com/questions/1217088/what-does-mapname-mean-in-ruby

Preview meta tags from the stackoverflow.com website.

Linked Hostnames

39

Thumbnail

Search Engine Appearance

Google

https://stackoverflow.com/questions/1217088/what-does-mapname-mean-in-ruby

What does map(&:name) mean in Ruby?

I found this code in a RailsCast: def tag_names @tag_names || tags.map(&:name).join(' ') end What does the (&:name) in map(&:name) mean?



Bing

What does map(&:name) mean in Ruby?

https://stackoverflow.com/questions/1217088/what-does-mapname-mean-in-ruby

I found this code in a RailsCast: def tag_names @tag_names || tags.map(&:name).join(' ') end What does the (&:name) in map(&:name) mean?



DuckDuckGo

https://stackoverflow.com/questions/1217088/what-does-mapname-mean-in-ruby

What does map(&:name) mean in Ruby?

I found this code in a RailsCast: def tag_names @tag_names || tags.map(&:name).join(' ') end What does the (&:name) in map(&:name) mean?

  • General Meta Tags

    2
    • title
      syntax - What does map(&:name) mean in Ruby? - Stack Overflow
    • viewport
      width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0
  • Open Graph Meta Tags

    6
    • og:type
      website
    • og:url
      https://stackoverflow.com/questions/1217088/what-does-mapname-mean-in-ruby
    • og:site_name
      Stack Overflow
    • og:image
      https://cdn.sstatic.net/Sites/stackoverflow/Img/[email protected]?v=73d79a89bded
    • twitter:title
      What does map(&:name) mean in Ruby?
  • Twitter Meta Tags

    2
    • twitter:card
      summary
    • twitter:domain
      stackoverflow.com
  • Link Tags

    10
    • alternate
      /feeds/question/1217088
    • apple-touch-icon
      https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a
    • canonical
      https://stackoverflow.com/questions/1217088/what-does-mapname-mean-in-ruby
    • image_src
      https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a
    • search
      /opensearch.xml

Links

233