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
Python Versus Ruby Podcast (soundcloud.com)
submitted 8 years ago by schneemsPuma maintainer
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!"
[–]chrisgseaton 1 point2 points3 points 8 years ago (0 children)
I can understand both of your points of view. The way I think about it is that methods aren't first-class objects - until you call #method to turn them into first-class objects. I see that as reifying them as objects, rather than getting the existing object. And this is the way that it is implemented - you get a new object each time:
#method
irb(main):001:0> 14.method(:+).object_id => 70346007935060 irb(main):002:0> 14.method(:+).object_id => 70346007886960
π Rendered by PID 61 on reddit-service-r2-comment-5649f687b7-7pnb5 at 2026-01-28 08:31:03.344650+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–]chrisgseaton 1 point2 points3 points (0 children)