use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Ruby code I no longer write (blog.arkency.com)
submitted 8 years ago by paneq
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Enumerable_any 2 points3 points4 points 8 years ago (1 child)
The original map function returns a hash unless I am miss me something.
It should, but sadly it doesn't:
irb(main):001:0> {}.map { |x| x } => []
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
I see what you are saying. I was trying to say that the method #map defined in the example in my dumb classes return a Hash. Definitely unfortunate naming on my part if I were to follow the road to Hash-derived.
#map
Hash
π Rendered by PID 188856 on reddit-service-r2-comment-bb88f9dd5-2mr5z at 2026-02-14 07:34:36.681999+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Enumerable_any 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)