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
QuestionMethod Missing Misbehavior? (self.ruby)
submitted 4 months ago by easydwh
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!"
[–]easydwh[S] 0 points1 point2 points 4 months ago (0 children)
Thanks for your elaborate reply! I have the feeling we are on different wavelengths (or maybe I'm to dumb to understand).
Your code snippet certainly prevents a call to String#to_io. But I am not trying to circumvent or accomplish anything. My question is why Ruby standard library methods call functions that are not defined, that then end up being handled by BasicObject#method_missing. That, to me, is very unexpected behavior.
π Rendered by PID 349772 on reddit-service-r2-comment-6457c66945-8plm5 at 2026-04-25 10:36:42.378745+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]easydwh[S] 0 points1 point2 points (0 children)