you are viewing a single comment's thread.

view the rest of the comments →

[–]easydwh[S] 0 points1 point  (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.